Base:
22 references to CanConvertFrom
System.Drawing.Common.Tests (22)
System\Drawing\IconConverterTests.cs (22)
38Assert.True(_icoConv.CanConvertFrom(null, typeof(byte[])), "byte[]");
39Assert.True(_icoConv.CanConvertFrom(null, _iconBytes.GetType()), "_iconBytes.GetType()");
40Assert.False(_icoConv.CanConvertFrom(null, typeof(string)), "string");
41Assert.False(_icoConv.CanConvertFrom(null, typeof(Rectangle)), "Rectangle");
42Assert.False(_icoConv.CanConvertFrom(null, typeof(Point)), "Point");
43Assert.False(_icoConv.CanConvertFrom(null, typeof(PointF)), "PointF");
44Assert.False(_icoConv.CanConvertFrom(null, typeof(Size)), "Size");
45Assert.False(_icoConv.CanConvertFrom(null, typeof(SizeF)), "SizeF");
46Assert.False(_icoConv.CanConvertFrom(null, typeof(object)), "object");
47Assert.False(_icoConv.CanConvertFrom(null, typeof(int)), "int");
48Assert.False(_icoConv.CanConvertFrom(null, typeof(Metafile)), "Metafile");
51Assert.True(_icoConvFrmTD.CanConvertFrom(null, typeof(byte[])), "TD byte[]");
52Assert.True(_icoConvFrmTD.CanConvertFrom(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
53Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(string)), "TD string");
54Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(Rectangle)), "TD Rectangle");
55Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(Point)), "TD Point");
56Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(PointF)), "TD PointF");
57Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(Size)), "TD Size");
58Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(SizeF)), "TD SizeF");
59Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(object)), "TD object");
60Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(int)), "TD int");
61Assert.False(_icoConvFrmTD.CanConvertFrom(null, typeof(Metafile)), "TD Metafile");