Base:
23 references to CanConvertFrom
System.Drawing.Common.Tests (23)
System\Drawing\ImageConverterTests.cs (23)
62Assert.True(_imgConv.CanConvertFrom(null, typeof(byte[])), "byte[]"); 63Assert.True(_imgConv.CanConvertFrom(null, _imageBytes.GetType()), "_imageBytes.GetType()"); 65Assert.True(_imgConv.CanConvertFrom(null, typeof(Icon)), "Icon"); 66Assert.False(_imgConv.CanConvertFrom(null, typeof(string)), "string"); 67Assert.False(_imgConv.CanConvertFrom(null, typeof(Rectangle)), "Rectangle"); 68Assert.False(_imgConv.CanConvertFrom(null, typeof(Point)), "Point"); 69Assert.False(_imgConv.CanConvertFrom(null, typeof(PointF)), "PointF"); 70Assert.False(_imgConv.CanConvertFrom(null, typeof(Size)), "Size"); 71Assert.False(_imgConv.CanConvertFrom(null, typeof(SizeF)), "SizeF"); 72Assert.False(_imgConv.CanConvertFrom(null, typeof(object)), "object"); 73Assert.False(_imgConv.CanConvertFrom(null, typeof(int)), "int"); 74Assert.False(_imgConv.CanConvertFrom(null, typeof(Metafile)), "Mefafile"); 77Assert.True(_imgConvFrmTD.CanConvertFrom(null, typeof(byte[])), "TD byte[]"); 78Assert.True(_imgConvFrmTD.CanConvertFrom(null, _imageBytes.GetType()), "TD _imageBytes.GetType()"); 79Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(string)), "TD string"); 80Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(Rectangle)), "TD Rectangle"); 81Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(Point)), "TD Point"); 82Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(PointF)), "TD PointF"); 83Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(Size)), "TD Size"); 84Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(SizeF)), "TD SizeF"); 85Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(object)), "TD object"); 86Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(int)), "TD int"); 87Assert.False(_imgConvFrmTD.CanConvertFrom(null, typeof(Metafile)), "TD Metafile");