3 references to new
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
24using LinearGradientBrush brush = new((PointF)point1, point2, color1, color2); 40using LinearGradientBrush brush = new(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.Red); 70Assert.Throws<OutOfMemoryException>(() => new LinearGradientBrush(new PointF(x, y), new PointF(x, y), Color.Fuchsia, Color.GhostWhite));