Base:
7 references to ConvertTo
System.Drawing.Common.Tests (7)
System\Drawing\Printing\MarginsConverterTests.cs (7)
128Assert.Equal("1;2;3;4", mc.ConvertTo(context, culture, "1;2;3;4", typeof(string))); 130object converted = mc.ConvertTo(context, culture, margins, typeof(string)); 135converted = mc.ConvertTo(context, culture, margins, typeof(InstanceDescriptor)); 139Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, new object(), typeof(object))); 140Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, 12, typeof(int))); 141Assert.Throws<NotSupportedException>(() => mc.ConvertTo(context, culture, guid, typeof(Guid))); 144Assert.Equal(string.Empty, (string)mc.ConvertTo(context, CultureInfo.CreateSpecificCulture("ru-RU"), null, typeof(string)));