1 write to _imageBytes
System.Drawing.Common.Tests (1)
System\Drawing\ImageConverterTests.cs (1)
25
_imageBytes
= destStream.ToArray();
12 references to _imageBytes
System.Drawing.Common.Tests (12)
System\Drawing\ImageConverterTests.cs (12)
63
Assert.True(_imgConv.CanConvertFrom(null,
_imageBytes
.GetType()), "_imageBytes.GetType()");
78
Assert.True(_imgConvFrmTD.CanConvertFrom(null,
_imageBytes
.GetType()), "TD _imageBytes.GetType()");
98
Assert.True(_imgConv.CanConvertTo(null,
_imageBytes
.GetType()), "_imageBytes.GetType()");
112
Assert.True(_imgConvFrmTD.CanConvertTo(null,
_imageBytes
.GetType()), "TD _imageBytes.GetType()");
125
Image newImage = (Image)_imgConv.ConvertFrom(null, CultureInfo.InvariantCulture,
_imageBytes
);
130
newImage = (Image)_imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture,
_imageBytes
);
175
byte[] newImageBytes = (byte[])_imgConv.ConvertTo(null, CultureInfo.InvariantCulture, _image,
_imageBytes
.GetType());
176
Assert.Equal(
_imageBytes
, newImageBytes);
178
newImageBytes = (byte[])_imgConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _image,
_imageBytes
.GetType());
179
Assert.Equal(
_imageBytes
, newImageBytes);
181
newImageBytes = (byte[])_imgConvFrmTD.ConvertTo(_image,
_imageBytes
.GetType());
182
Assert.Equal(
_imageBytes
, newImageBytes);