예제 #1
0
		public void TestConvertFrom ()
		{
			FontConverter.FontNameConverter f = new FontConverter.FontNameConverter ();
			// returns "Times" under Linux and "Times New Roman" under Windows
			Assert.IsTrue ((f.ConvertFrom ("Times") as string).StartsWith ("Times"), "string test");
			Assert.IsTrue (f.GetStandardValuesSupported (), "standard values supported");
			Assert.IsFalse (f.GetStandardValuesExclusive (), "standard values exclusive");
		}
예제 #2
0
		public void ExTestConvertFrom2 ()
		{
			FontConverter.FontNameConverter f = new FontConverter.FontNameConverter ();
			f.ConvertFrom (1);
		}