5 references to new
System.Drawing.Common.Tests (5)
System\Drawing\Imaging\MetafileTests.cs (5)
339using (Metafile metafile = new(fileName, g.GetHdc())) 386AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero)); 411AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc)); 424AssertExtensions.Throws<ArgumentException>("path", null, () => new Metafile(fileName, referenceHdc)); 436Assert.Throws<PathTooLongException>(() => new Metafile(fileName, referenceHdc));