System\Drawing\Imaging\MetafileTests.cs (3)
741using Metafile metafile = new(stream, g.GetHdc(), _rectangle, frameUnit);
788AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.GdiCompatible));
803AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, referenceHdc, _rectangle, frameUnit));