8 references to DrawCurve
System.Drawing.Common.Tests (8)
mono\System.Drawing\GraphicsTests.cs (1)
739
Assert.Throws<ArgumentException>(() => g.
DrawCurve
(Pens.Black, s_tooSmallCurve, 0, 2, 0.5f));
System\Drawing\GraphicsTests.cs (7)
2461
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawCurve
(null, new Point[2], 0, 2, 1));
2478
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new Point[2], 0, 2, 1));
2493
AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.
DrawCurve
(pen, (Point[])null, 0, 2, 1));
2510
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new Point[length], 0, length, 1));
2526
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new Point[length], offset, numberOfSegments, 1));
2544
Assert.Throws<InvalidOperationException>(() => graphics.
DrawCurve
(pen, new Point[2], 0, 2, 1));
2566
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawCurve
(pen, new Point[2], 0, 2, 1));