Base:
method
ConvertFrom
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
5 references to ConvertFrom
System.Xaml.Tests (5)
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (5)
82
XamlType actual = Assert.IsType<XamlType>(converter.
ConvertFrom
(context, null, value));
115
Assert.Throws<FormatException>(() => converter.
ConvertFrom
(context, null, value));
136
Assert.Throws<NotSupportedException>(() => converter.
ConvertFrom
(context, null, "value"));
170
Assert.Throws<NotSupportedException>(() => converter.
ConvertFrom
(context, null, "prefix:namespace"));
187
Assert.Throws<NotSupportedException>(() => converter.
ConvertFrom
(new CustomTypeDescriptorContext(), null, value));