3 references to new
System.Drawing.Common.Tests (3)
System\Drawing\Imaging\MetafileTests.cs (3)
738using Metafile metafile = new(stream, g.GetHdc(), _rectangle, frameUnit); 785AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible)); 800AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, referenceHdc, _rectangle, frameUnit));