Base:
method
ConvertTo
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object, System.Type)
4 references to ConvertTo
System.Xaml.Tests (4)
System\Windows\Markup\NameReferenceConverterTests.cs (4)
155
Assert.Equal(name, converter.
ConvertTo
(context, null, "value", null));
162
Assert.Throws<ArgumentNullException>("context", () => converter.
ConvertTo
(null, CultureInfo.CurrentCulture, "value", typeof(string)));
177
Assert.Throws<InvalidOperationException>(() => converter.
ConvertTo
(context, null, "value", null));
192
Assert.Throws<InvalidCastException>(() => converter.
ConvertTo
(context, null, "value", null));