6 references to DrawPolygon
System.Drawing.Common.Tests (6)
System\Drawing\GraphicsTests.cs (6)
2311AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new Point[2])); 2323AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[2])); 2333AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (Point[])null)); 2345AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[length])); 2358Assert.Throws<InvalidOperationException>(() => graphics.DrawPolygon(pen, new Point[2])); 2375AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[2]));