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));