Base:
7 references to ConvertFrom
System.Drawing.Common.Tests (7)
System\Drawing\Printing\MarginsConverterTests.cs (7)
89AssertExtensions.Throws<ArgumentException, Exception>(() => mc.ConvertFrom(context, culture, "1;2;3;4")); 90result = mc.ConvertFrom(context, culture, "1,2,3,4"); 109Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, null, null)); 110Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, culture, null)); 111Assert.Throws<NotSupportedException>(() => mc.ConvertFrom(context, culture, Guid.NewGuid())); 112AssertExtensions.Throws<ArgumentException, Exception>(() => mc.ConvertFrom(context, null, "wrong string format")); 113AssertExtensions.Throws<ArgumentException, Exception>(() => mc.ConvertFrom(context, culture, "wrong string format"));