System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
128using LinearGradientBrush brush = new(rectangle, color1, color2, angle);
204AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0f));
215AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, 0f));