Base:
26 references to CanConvertTo
System.Drawing.Common.Tests (26)
System\Drawing\IconConverterTests.cs (26)
68Assert.True(_icoConv.CanConvertTo(null, typeof(string)), "string");
69Assert.True(_icoConv.CanConvertTo(null, _iconStr.GetType()), "_iconStr.GetType()");
71Assert.True(_icoConv.CanConvertTo(null, typeof(byte[])), "byte[]");
72Assert.True(_icoConv.CanConvertTo(null, _iconBytes.GetType()), "_iconBytes.GetType()");
74Assert.True(_icoConv.CanConvertTo(null, typeof(Image)), "Image");
76Assert.True(_icoConv.CanConvertTo(null, typeof(Bitmap)), "Bitmap");
77Assert.False(_icoConv.CanConvertTo(null, typeof(Rectangle)), "Rectangle");
78Assert.False(_icoConv.CanConvertTo(null, typeof(Point)), "Point");
79Assert.False(_icoConv.CanConvertTo(null, typeof(PointF)), "PointF");
80Assert.False(_icoConv.CanConvertTo(null, typeof(Size)), "Size");
81Assert.False(_icoConv.CanConvertTo(null, typeof(SizeF)), "SizeF");
82Assert.False(_icoConv.CanConvertTo(null, typeof(object)), "object");
83Assert.False(_icoConv.CanConvertTo(null, typeof(int)), "int");
86Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(string)), "TD string");
87Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconStr.GetType()), "TD _iconStr.GetType()");
89Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(byte[])), "TD byte[]");
90Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
92Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(Image)), "TD Image");
94Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(Bitmap)), "TD Bitmap");
95Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(Rectangle)), "TD Rectangle");
96Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(Point)), "TD Point");
97Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(PointF)), "TD PointF");
98Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(Size)), "TD Size");
99Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(SizeF)), "TD SizeF");
100Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(object)), "TD object");
101Assert.False(_icoConvFrmTD.CanConvertTo(null, typeof(int)), "TD int");