1 write to _iconBytes
System.Drawing.Common.Tests (1)
System\Drawing\IconConverterTests.cs (1)
27
_iconBytes
= destStream.ToArray();
14 references to _iconBytes
System.Drawing.Common.Tests (14)
System\Drawing\IconConverterTests.cs (14)
39
Assert.True(_icoConv.CanConvertFrom(null,
_iconBytes
.GetType()), "_iconBytes.GetType()");
52
Assert.True(_icoConvFrmTD.CanConvertFrom(null,
_iconBytes
.GetType()), "TD _iconBytes.GetType()");
72
Assert.True(_icoConv.CanConvertTo(null,
_iconBytes
.GetType()), "_iconBytes.GetType()");
90
Assert.True(_icoConvFrmTD.CanConvertTo(null,
_iconBytes
.GetType()), "TD _iconBytes.GetType()");
107
Icon newIcon = (Icon)_icoConv.ConvertFrom(null, CultureInfo.InvariantCulture,
_iconBytes
);
119
newIcon = (Icon)_icoConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture,
_iconBytes
);
138
byte[] newIconBytes = (byte[])_icoConv.ConvertTo(null, CultureInfo.InvariantCulture, _icon,
_iconBytes
.GetType());
139
Assert.Equal(
_iconBytes
, newIconBytes);
141
newIconBytes = (byte[])_icoConv.ConvertTo(_icon,
_iconBytes
.GetType());
142
Assert.Equal(
_iconBytes
, newIconBytes);
155
newIconBytes = (byte[])_icoConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture, _icon,
_iconBytes
.GetType());
156
Assert.Equal(
_iconBytes
, newIconBytes);
158
newIconBytes = (byte[])_icoConvFrmTD.ConvertTo(_icon,
_iconBytes
.GetType());
159
Assert.Equal(
_iconBytes
, newIconBytes);