Base:
method
ConvertFrom
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object)
12 references to ConvertFrom
System.Drawing.Common.Tests (12)
System\Drawing\ImageConverterTests.cs (12)
125
Image newImage = (Image)_imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, _imageBytes);
130
newImage = (Image)_imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, _imageBytes);
140
Assert.Throws<NotSupportedException>(() => _imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
141
Assert.Throws<NotSupportedException>(() => _imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
142
Assert.Throws<NotSupportedException>(() => _imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, new Point(10, 10)));
143
Assert.Throws<NotSupportedException>(() => _imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
144
Assert.Throws<NotSupportedException>(() => _imgConv.
ConvertFrom
(null, CultureInfo.InvariantCulture, new object()));
147
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, "System.Drawing.String"));
148
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, new Bitmap(20, 20)));
149
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, new Point(10, 10)));
150
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, new SizeF(10, 10)));
151
Assert.Throws<NotSupportedException>(() => _imgConvFrmTD.
ConvertFrom
(null, CultureInfo.InvariantCulture, new object()));