Base:
method
ConvertFrom
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
6 references to ConvertFrom
System.Xaml.Tests (6)
System\Windows\Markup\NameReferenceConverterTests.cs (6)
44
Assert.Equal("resolve", converter.
ConvertFrom
(context, null, "name"));
65
Assert.Equal(fixup, converter.
ConvertFrom
(context, null, "name"));
72
Assert.Throws<ArgumentNullException>("context", () => converter.
ConvertFrom
(null, CultureInfo.CurrentCulture, "name"));
87
Assert.Throws<InvalidOperationException>(() => converter.
ConvertFrom
(context, null, "name"));
102
Assert.Throws<InvalidCastException>(() => converter.
ConvertFrom
(context, null, "name"));
120
Assert.Throws<InvalidOperationException>(() => converter.
ConvertFrom
(context, null, value));