System\Drawing\Imaging\MetafileTests.cs (6)
464using (Metafile metafile = new(fileName, g.GetHdc(), _rectangleF, frameUnit))
615AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.GdiCompatible));
638AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, referenceHdc, _rectangleF, frameUnit));
680new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible));
697new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible));
713new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible));