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)
44Assert.Equal("resolve", converter.ConvertFrom(context, null, "name")); 65Assert.Equal(fixup, converter.ConvertFrom(context, null, "name")); 72Assert.Throws<ArgumentNullException>("context", () => converter.ConvertFrom(null, CultureInfo.CurrentCulture, "name")); 87Assert.Throws<InvalidOperationException>(() => converter.ConvertFrom(context, null, "name")); 102Assert.Throws<InvalidCastException>(() => converter.ConvertFrom(context, null, "name")); 120Assert.Throws<InvalidOperationException>(() => converter.ConvertFrom(context, null, value));