System\Windows\ExpressionConverterTests.cs (5)
22Assert.False(converter.CanConvertTo(new CustomTypeDescriptorContext(), destinationType));
56Assert.Throws<NotSupportedException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, destinationType));
75Assert.Throws<NullReferenceException>(() => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, null!));
89Assert.False(converter.CanConvertFrom(new CustomTypeDescriptorContext(), sourceType));
105Assert.Throws<NotSupportedException>(() => converter.ConvertFrom(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value));