1 write to _imageFmt
System.Drawing.Common.Tests (1)
System\Drawing\ImageFormatConverterTests.cs (1)
19
_imageFmt
= ImageFormat.Bmp;
16 references to _imageFmt
System.Drawing.Common.Tests (16)
System\Drawing\ImageFormatConverterTests.cs (16)
20
_imageFmtStr =
_imageFmt
.ToString();
23
_imgFmtConvFrmTD = (ImageFormatConverter)TypeDescriptor.GetConverter(
_imageFmt
);
65
Assert.Equal(
_imageFmt
, (ImageFormat)_imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.ToString()));
66
Assert.Equal(
_imageFmt
, (ImageFormat)_imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.ToString()));
130
Assert.Equal(_imageFmtStr, (string)_imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(string)));
131
Assert.Equal(_imageFmtStr, (string)_imgFmtConv.ConvertTo(
_imageFmt
, typeof(string)));
133
Assert.Equal(_imageFmtStr, (string)_imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(string)));
134
Assert.Equal(_imageFmtStr, (string)_imgFmtConvFrmTD.ConvertTo(
_imageFmt
, typeof(string)));
146
Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(ImageFormat)));
147
Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(Guid)));
148
Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(object)));
149
Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(int)));
151
Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(ImageFormat)));
152
Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(Guid)));
153
Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(object)));
154
Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertTo(null, CultureInfo.InvariantCulture,
_imageFmt
, typeof(int)));