3 references to new
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
188using LinearGradientBrush brush = new((RectangleF)rectangle, color1, color2, angle, isAngleScalable); 209AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true)); 220AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true));