15 references to Winding
System.Drawing.Common.Tests (15)
System\Drawing\Drawing2D\GraphicsPathTests.cs (5)
45
using GraphicsPath gpw = new(FillMode.
Winding
);
48
Assert.Equal(FillMode.
Winding
, gpw.FillMode);
122
gp.FillMode = FillMode.
Winding
;
123
Assert.Equal(FillMode.
Winding
, gp.FillMode);
128
[InlineData(FillMode.
Winding
+ 1)]
System\Drawing\GraphicsTests.cs (10)
2576
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3], 1, FillMode.
Winding
));
2578
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3], 1, FillMode.
Winding
));
2590
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.
Winding
));
2592
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.
Winding
));
2602
AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null, 1, FillMode.
Winding
));
2604
AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null, 1, FillMode.
Winding
));
2617
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[length], 1, FillMode.
Winding
));
2619
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[length], 1, FillMode.
Winding
));
2632
Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.
Winding
));
2634
Assert.Throws<InvalidOperationException>(() => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.
Winding
));