System\Drawing\Imaging\MetafileTests.cs (5)
448using (Metafile metafile = new(fileName, g.GetHdc(), _rectangleF))
614AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangleF));
678AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, _rectangleF));
695AssertExtensions.Throws<ArgumentException, ArgumentException>("path", null, () => new Metafile(fileName, referenceHdc, _rectangleF));
711Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc, _rectangleF));