10 references to DrawCurve
System.Drawing.Common.Tests (10)
mono\System.Drawing\GraphicsTests.cs (3)
773
Assert.Throws<ArgumentException>(() => g.
DrawCurve
(Pens.Black, s_smallCurveF, 0, 0));
781
Assert.Throws<ArgumentException>(() => g.
DrawCurve
(Pens.Black, s_smallCurveF, 0, -1));
790
Assert.Throws<ArgumentException>(() => g.
DrawCurve
(Pens.Black, s_smallCurveF, 1, 2));
System\Drawing\GraphicsTests.cs (7)
2460
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawCurve
(null, new PointF[2], 0, 2));
2477
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new PointF[2], 0, 2));
2492
AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.
DrawCurve
(pen, null, 0, 2));
2509
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new PointF[length], 0, length));
2525
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new PointF[length], offset, numberOfSegments));
2543
Assert.Throws<InvalidOperationException>(() => graphics.
DrawCurve
(pen, new PointF[2], 0, 2));
2565
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new PointF[2], 0, 2));