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