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