7 references to AddPolygon
System.Drawing.Common.Tests (7)
System\Drawing\Drawing2D\GraphicsPathTests.cs (7)
893gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) });
918gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) });
922gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) });
926gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) });
930gpf.AddPolygon(new PointF[3] { new(1, 1), new(2, 2), new(3, 3) });
940AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((PointF[])null));
955AssertExtensions.Throws<ArgumentException>(null, () => gp.AddPolygon(points));