20 references to new
System.Drawing.Common.Tests (20)
System\Drawing\Imaging\ImageFormatTests.cs (20)
8
private static ImageFormat BmpImageFormat { get; } =
new
(new Guid("b96b3cab-0728-11d3-9d7b-0000f81ef32e"));
9
private static ImageFormat EmfImageFormat { get; } =
new
(new Guid("b96b3cac-0728-11d3-9d7b-0000f81ef32e"));
10
private static ImageFormat ExifImageFormat { get; } =
new
(new Guid("b96b3cb2-0728-11d3-9d7b-0000f81ef32e"));
11
private static ImageFormat GifImageFormat { get; } =
new
(new Guid("b96b3cb0-0728-11d3-9d7b-0000f81ef32e"));
12
private static ImageFormat TiffImageFormat { get; } =
new
(new Guid("b96b3cb1-0728-11d3-9d7b-0000f81ef32e"));
13
private static ImageFormat PngImageFormat { get; } =
new
(new Guid("b96b3caf-0728-11d3-9d7b-0000f81ef32e"));
14
private static ImageFormat MemoryBmpImageFormat { get; } =
new
(new Guid("b96b3caa-0728-11d3-9d7b-0000f81ef32e"));
15
private static ImageFormat IconImageFormat { get; } =
new
(new Guid("b96b3cb5-0728-11d3-9d7b-0000f81ef32e"));
16
private static ImageFormat JpegImageFormat { get; } =
new
(new Guid("b96b3cae-0728-11d3-9d7b-0000f81ef32e"));
17
private static ImageFormat WmfImageFormat { get; } =
new
(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e"));
18
private static ImageFormat HeifImageFormat { get; } =
new
(new Guid("{b96b3cb6-0728-11d3-9d7b-0000f81ef32e}"));
19
private static ImageFormat WebpImageFormat { get; } =
new
(new Guid("{b96b3cb7-0728-11d3-9d7b-0000f81ef32e}"));
20
private static ImageFormat CustomImageFormat { get; } =
new
(new Guid("48749428-316f-496a-ab30-c819a92b3137"));
81
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), true };
82
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
ImageFormat
(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")), false };
83
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), null, false };
84
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
121
Assert.Equal(guid.GetHashCode(), new
ImageFormat
(guid).GetHashCode());