//
-// Tests for System.Web.UI.WebControls.Style.cs
+// Tests for System.Web.UI.WebControls.FontNamesConverter.cs
//
// Author:
// Peter Dennis Bartok (pbartok@novell.com)
// list of font names separated by comma.
// Why does the CanConvertFrom() and CanConvertTo() then indicate that it cannot handle string[]???
// It obviously works:
+#if ONLY_1_1
Assert.AreEqual (name_array, conv.ConvertFrom(null, null, name_list), "B7");
Assert.AreEqual (name_list, conv.ConvertTo(null, null, name_array, typeof(string)), "B8");
// Special cases
Assert.AreEqual ("", conv.ConvertTo(null, null, new string[0], typeof(string)), "B9");
+#endif
Assert.AreEqual ("", conv.ConvertTo(null, null, null, typeof(string)), "B10");
Assert.AreEqual (new string[0], conv.ConvertFrom(null, null, ""), "B11");
-
+#if ONLY_1_1
// Roundtrip
Assert.AreEqual (name_list, conv.ConvertTo(null, null, conv.ConvertFrom(null, null, name_list), typeof(string)), "B12");
// This is stupid behaviour and prevents roundtripping; why trim in ConvertFrom and not in ConvertTo?
Assert.AreEqual ("Arial\n,Courier\n", conv.ConvertTo(null, null, new string[] { "Arial\n", "Courier\n" }, typeof(string)), "B17");
Assert.AreEqual ("Arial,\n,Courier\n", conv.ConvertTo(null, null, new string[] { "Arial,\n", "Courier\n" }, typeof(string)), "B18");
+#endif
}
}
}