4 references to new
System.Drawing.Common.Tests (4)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
51
using LinearGradientBrush brush =
new
(point1, point2, color1, color2);
69
Assert.Throws<OutOfMemoryException>(() => new
LinearGradientBrush
(new Point(x, y), new Point(x, y), Color.Fuchsia, Color.GhostWhite));
System\Drawing\PenTests.cs (2)
15
yield return new object[] { new
LinearGradientBrush
(new Point(0, 0), new Point(0, 2), Color.Purple, Color.Plum), PenType.LinearGradient };
253
using LinearGradientBrush brush =
new
(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);