5 references to new
System.Drawing.Common.Tests (5)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
98using PathGradientBrush brush = new(path); 106AssertExtensions.Throws<ArgumentNullException>("path", () => new PathGradientBrush((GraphicsPath)null)); 113Assert.Throws<OutOfMemoryException>(() => new PathGradientBrush(path)); 115Assert.Throws<OutOfMemoryException>(() => new PathGradientBrush(path)); 122using PathGradientBrush brush = new(path);