Base:
method
ConvertTo
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object, System.Type)
3 references to ConvertTo
PresentationCore.Tests (3)
System\Windows\Input\MouseActionConverter.Tests.cs (3)
129Assert.Equal(expected, (string)converter.ConvertTo(context, cultureInfo, value, typeof(string))); 175Assert.Throws<InvalidCastException>(() => converter.ConvertTo(null, null, (int)(MouseAction.MiddleDoubleClick), typeof(string))); 183Assert.Throws<InvalidEnumArgumentException>(() => converter.ConvertTo(null, null, (MouseAction)(MouseAction.MiddleDoubleClick + 1), typeof(string)));