Base:
22 references to CanConvertTo
System.Drawing.Common.Tests (22)
System\Drawing\ImageConverterTests.cs (22)
94Assert.True(_imgConv.CanConvertTo(null, typeof(string)), "string"); 95Assert.True(_imgConv.CanConvertTo(null, _imageStr.GetType()), "_imageStr.GetType()"); 97Assert.True(_imgConv.CanConvertTo(null, typeof(byte[])), "byte[]"); 98Assert.True(_imgConv.CanConvertTo(null, _imageBytes.GetType()), "_imageBytes.GetType()"); 99Assert.False(_imgConv.CanConvertTo(null, typeof(Rectangle)), "Rectangle"); 100Assert.False(_imgConv.CanConvertTo(null, typeof(Point)), "Point"); 101Assert.False(_imgConv.CanConvertTo(null, typeof(PointF)), "PointF"); 102Assert.False(_imgConv.CanConvertTo(null, typeof(Size)), "Size"); 103Assert.False(_imgConv.CanConvertTo(null, typeof(SizeF)), "SizeF"); 104Assert.False(_imgConv.CanConvertTo(null, typeof(object)), "object"); 105Assert.False(_imgConv.CanConvertTo(null, typeof(int)), "int"); 108Assert.True(_imgConvFrmTD.CanConvertTo(null, typeof(string)), "TD string"); 109Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageStr.GetType()), "TD _imageStr.GetType()"); 111Assert.True(_imgConvFrmTD.CanConvertTo(null, typeof(byte[])), "TD byte[]"); 112Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageBytes.GetType()), "TD _imageBytes.GetType()"); 113Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(Rectangle)), "TD Rectangle"); 114Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(Point)), "TD Point"); 115Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(PointF)), "TD PointF"); 116Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(Size)), "TD Size"); 117Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(SizeF)), "TD SizeF"); 118Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(object)), "TD object"); 119Assert.False(_imgConvFrmTD.CanConvertTo(null, typeof(int)), "TD int");