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)
42
Assert.Equal("resolve", converter.
ConvertFrom
(context, null, "name"));
63
Assert.Equal(fixup, converter.
ConvertFrom
(context, null, "name"));
70
Assert.Throws<ArgumentNullException>("context", () => converter.
ConvertFrom
(null, CultureInfo.CurrentCulture, "name"));
85
Assert.Throws<InvalidOperationException>(() => converter.
ConvertFrom
(context, null, "name"));
100
Assert.Throws<InvalidCastException>(() => converter.
ConvertFrom
(context, null, "name"));
118
Assert.Throws<InvalidOperationException>(() => converter.
ConvertFrom
(context, null, value));