541 references to Throws
System.Drawing.Common.Tests (538)
System\Drawing\BitmapTests.cs (14)
885
AssertExtensions.
Throws
<ArgumentException>(null, bitmap.MakeTransparent);
886
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.MakeTransparent(Color.Red));
893
AssertExtensions.
Throws
<ArgumentException>(null, bitmap.MakeTransparent);
942
AssertExtensions.
Throws
<ArgumentOutOfRangeException>("x", () => bitmap.SetPixel(x, 0, Color.Red));
951
AssertExtensions.
Throws
<ArgumentOutOfRangeException>("y", () => bitmap.SetPixel(0, y, Color.Red));
958
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.Red));
967
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.Red));
988
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.SetResolution(xDpi, 1));
999
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.SetResolution(1, yDpi));
1008
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.SetResolution(1, 1));
1078
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.UnlockBits(data));
1153
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.UnlockBits(data));
1235
AssertExtensions.
Throws
<ArgumentNullException>("bitmapdata", () => bitmap.UnlockBits(null));
1261
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.UnlockBits(new BitmapData()));
System\Drawing\Drawing2D\CustomLineCapTests.cs (3)
112
AssertExtensions.
Throws
<ArgumentException>(null, () => customLineCap.SetStrokeCaps(startCap, endCap));
218
AssertExtensions.
Throws
<ArgumentException>(null, () => customLineCap.SetStrokeCaps(LineCap.Flat, LineCap.Flat));
219
AssertExtensions.
Throws
<ArgumentException>(null, () => customLineCap.GetStrokeCaps(out LineCap startCap, out LineCap endCap));
System\Drawing\Drawing2D\GraphicsPathTests.cs (28)
316
AssertExtensions.
Throws
<ArgumentNullException>("points", () => new GraphicsPath().AddLines((Point[])null));
317
AssertExtensions.
Throws
<ArgumentNullException>("points", () => new GraphicsPath().AddLines((PointF[])null));
360
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddArc(1, 1, width, height, Pi4, Pi4));
361
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddArc(1.0f, 1.0f, width, height, Pi4, Pi4));
427
AssertExtensions.
Throws
<ArgumentNullException>("points", () => gp.AddBeziers((PointF[])null));
428
AssertExtensions.
Throws
<ArgumentNullException>("points", () => gp.AddBeziers((Point[])null));
444
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddBeziers(points));
558
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddCurve((PointF[])null));
559
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddCurve((Point[])null));
666
AssertExtensions.
Throws
<ArgumentNullException>("points", () => gp.AddClosedCurve((PointF[])null));
667
AssertExtensions.
Throws
<ArgumentNullException>("points", () => gp.AddClosedCurve((Point[])null));
682
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddClosedCurve(points));
697
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddClosedCurve(points));
806
AssertExtensions.
Throws
<ArgumentNullException>("rects", () => gp.AddRectangles((RectangleF[])null));
807
AssertExtensions.
Throws
<ArgumentNullException>("rects", () => gp.AddRectangles((Rectangle[])null));
879
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddPie(1, 1, height, width, Pi4, Pi4));
880
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddPie(1f, 1f, height, width, Pi4, Pi4));
881
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddPie(new Rectangle(1, 1, height, width), Pi4, Pi4));
939
AssertExtensions.
Throws
<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((Point[])null));
940
AssertExtensions.
Throws
<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((PointF[])null));
955
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddPolygon(points));
970
AssertExtensions.
Throws
<ArgumentException>(null, () => gp.AddPolygon(points));
987
AssertExtensions.
Throws
<ArgumentNullException>("addingPath", () => new GraphicsPath().AddPath(null, false));
1112
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => gp.Transform(null));
1281
AssertExtensions.
Throws
<ArgumentNullException>("destPoints", () => gp.Warp(null, default));
1684
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => gp.Widen(null));
1685
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix()));
1686
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix(), 0.67f));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (20)
652
AssertExtensions.
Throws
<ArgumentException>(null, brush.ResetTransform);
696
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
697
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
719
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix));
720
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.Append));
729
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix()));
730
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(), MatrixOrder.Prepend));
770
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(0, 0, order));
779
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(0, 0));
780
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(0, 0, MatrixOrder.Append));
820
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(0, 0, order));
829
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(0, 0));
830
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(0, 0, MatrixOrder.Append));
871
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(0, order));
880
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(0));
881
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(0, MatrixOrder.Append));
924
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetSigmaBellShape(0));
925
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetSigmaBellShape(0, 1));
984
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetBlendTriangularShape(0));
985
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetBlendTriangularShape(0, 1));
System\Drawing\Drawing2D\MatrixTests.cs (43)
261
AssertExtensions.
Throws
<ArgumentException>(null, matrix1.Invert);
262
AssertExtensions.
Throws
<ArgumentException>(null, matrix2.Invert);
263
AssertExtensions.
Throws
<ArgumentException>(null, matrix3.Invert);
264
AssertExtensions.
Throws
<ArgumentException>(null, matrix4.Invert);
265
AssertExtensions.
Throws
<ArgumentException>(null, matrix5.Invert);
266
AssertExtensions.
Throws
<ArgumentException>(null, matrix6.Invert);
272
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedMatrix().Invert());
337
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => matrix.Multiply(null));
338
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.Prepend));
348
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Multiply(other, order));
357
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Multiply(other));
358
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Multiply(other, MatrixOrder.Prepend));
367
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Multiply(disposedMatrix));
368
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Multiply(disposedMatrix, MatrixOrder.Prepend));
393
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedMatrix().Reset());
477
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedMatrix().Rotate(1, MatrixOrder.Append));
486
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Rotate(1, order));
494
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.RotateAt(1, PointF.Empty));
495
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.RotateAt(1, PointF.Empty, MatrixOrder.Append));
504
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.RotateAt(1, PointF.Empty, order));
561
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Shear(1, 2, order));
569
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Scale(1, 2));
570
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Scale(1, 2, MatrixOrder.Append));
627
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Shear(1, 2, order));
635
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Shear(1, 2));
636
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Shear(1, 2, MatrixOrder.Append));
684
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.Translate(1, 2, order));
692
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Translate(1, 2));
693
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.Translate(1, 2, MatrixOrder.Append));
730
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => matrix.TransformPoints((Point[])null));
731
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => matrix.TransformPoints((PointF[])null));
738
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.TransformPoints(Array.Empty<Point>()));
739
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.TransformPoints(Array.Empty<PointF>()));
747
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.TransformPoints(new Point[1]));
748
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.TransformPoints(new PointF[1]));
796
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => matrix.VectorTransformPoints(null));
797
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => matrix.TransformVectors((Point[])null));
798
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => matrix.TransformVectors((PointF[])null));
806
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.TransformVectors(Array.Empty<Point>()));
807
AssertExtensions.
Throws
<ArgumentException>(null, () => matrix.TransformVectors(Array.Empty<PointF>()));
815
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.VectorTransformPoints(new Point[1]));
816
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.TransformPoints(new Point[1]));
817
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedMatrix.TransformVectors(new PointF[1]));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (17)
418
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetSigmaBellShape(1f));
419
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetSigmaBellShape(1f, 1f));
502
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetBlendTriangularShape(1f));
503
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.SetBlendTriangularShape(1f, 1f));
691
AssertExtensions.
Throws
<ArgumentException>(null, brush.ResetTransform);
725
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.Append));
732
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
733
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
755
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix, (MatrixOrder)int.MinValue));
763
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(nonInvertible));
764
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(nonInvertible, MatrixOrder.Append));
795
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(20f, 30f, MatrixOrder.Append));
802
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(20f, 30f, (MatrixOrder)int.MinValue));
845
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(0.25f, 2, MatrixOrder.Append));
852
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(1, 1, (MatrixOrder)int.MinValue));
886
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(45, MatrixOrder.Append));
893
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(45, (MatrixOrder)int.MinValue));
System\Drawing\FontTests.cs (1)
775
AssertExtensions.
Throws
<ArgumentNullException>("graphics", () => font.ToLogFont(new LOGFONT(), null));
System\Drawing\Graphics_DrawBezierTests.cs (20)
65
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawBezier(null, 1, 2, 3, 4, 5, 6, 7, 8));
66
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawBezier(null, Point.Empty, Point.Empty, Point.Empty, Point.Empty));
67
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawBezier(null, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty));
78
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBezier(pen, 1, 2, 3, 4, 5, 6, 7, 8));
79
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBezier(pen, Point.Empty, Point.Empty, Point.Empty, Point.Empty));
80
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBezier(pen, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty));
110
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 1), 0, 90));
111
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 1, 1, 0, 90));
112
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
113
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 1f, 1f, 0, 90));
121
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new Point[2]));
122
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new PointF[2]));
133
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, new Point[2]));
134
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, new PointF[2]));
143
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (Point[])null));
144
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (PointF[])null));
153
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, Array.Empty<Point>()));
154
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, Array.Empty<PointF>()));
183
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, new Point[2]));
184
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawBeziers(pen, new PointF[2]));
System\Drawing\Graphics_DrawLineTests.cs (22)
43
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLine(null, Point.Empty, Point.Empty));
44
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0, 0, 0, 0));
45
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLine(null, PointF.Empty, PointF.Empty));
46
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0f, 0f, 0f, 0f));
57
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, Point.Empty, Point.Empty));
58
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, 0, 0, 0, 0));
59
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, PointF.Empty, PointF.Empty));
60
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, 0f, 0f, 0f, 0f));
91
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, Point.Empty, Point.Empty));
92
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, 0, 0, 0, 0));
93
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, PointF.Empty, PointF.Empty));
94
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLine(pen, 0f, 0f, 0f, 0f));
102
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLines(null, new Point[2]));
103
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawLines(null, new PointF[2]));
114
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new Point[2]));
115
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new PointF[2]));
124
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawLines(pen, (Point[])null));
125
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawLines(pen, (PointF[])null));
136
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new Point[length]));
137
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new PointF[length]));
166
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new Point[2]));
167
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawLines(pen, new PointF[2]));
System\Drawing\GraphicsTests.Core.cs (8)
75
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new RectangleF(0f, 0f, 1f, 1f)));
88
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f)));
119
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, new RectangleF(0f, 0f, 1f, 1f)));
129
AssertExtensions.
Throws
<ArgumentNullException>("brush", () => graphics.FillPie(null, new RectangleF(0, 0, 1, 1), 0, 90));
142
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90));
153
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 0, 1), 0, 90));
164
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 0), 0, 90));
195
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (206)
139
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdc(hdc));
140
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc));
144
AssertExtensions.
Throws
<ArgumentException>(null, graphics.ReleaseHdc);
145
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc));
149
AssertExtensions.
Throws
<ArgumentException>(null, graphics.ReleaseHdc);
150
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdcInternal(hdc));
179
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics1.ReleaseHdc(hdc1));
182
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics2.ReleaseHdc(hdc2));
190
AssertExtensions.
Throws
<ArgumentException>(null, graphics.ReleaseHdc);
191
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdc(IntPtr.Zero));
192
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero));
202
AssertExtensions.
Throws
<ArgumentException>(null, graphics.ReleaseHdc);
203
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdc(IntPtr.Zero));
204
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ReleaseHdcInternal(IntPtr.Zero));
575
AssertExtensions.
Throws
<ArgumentException>(null, graphics.Flush);
576
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.Flush(FlushIntention.Flush));
1181
AssertExtensions.
Throws
<ArgumentException>(null, graphics.ResetTransform);
1221
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null));
1222
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null, MatrixOrder.Append));
1246
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.MultiplyTransform(matrix));
1247
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.MultiplyTransform(matrix, MatrixOrder.Append));
1258
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.MultiplyTransform(matrix, order));
1287
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.MultiplyTransform(matrix));
1288
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.MultiplyTransform(matrix, MatrixOrder.Prepend));
1335
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TranslateTransform(0, 0, order));
1362
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TranslateTransform(0, 0));
1363
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TranslateTransform(0, 0, MatrixOrder.Append));
1405
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ScaleTransform(0, 0));
1406
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ScaleTransform(0, 0, MatrixOrder.Append));
1416
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ScaleTransform(0, 0, order));
1443
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ScaleTransform(0, 0));
1444
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.ScaleTransform(0, 0, MatrixOrder.Append));
1492
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.RotateTransform(0, order));
1519
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.RotateTransform(0));
1520
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.RotateTransform(0, MatrixOrder.Append));
1678
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty));
1679
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.CopyFromScreen(0, 0, 0, 0, Size.Empty, CopyPixelOperation.MergeCopy));
1680
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty));
1681
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.CopyFromScreen(Point.Empty, Point.Empty, Size.Empty, CopyPixelOperation.MergeCopy));
1854
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TransformPoints(destSpace, CoordinateSpace.World, new PointF[] { new(1, 1) }));
1865
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.World, srcSpace, new PointF[] { new(1, 1) }));
1873
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (Point[])null));
1874
AssertExtensions.
Throws
<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (PointF[])null));
1882
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, Array.Empty<Point>()));
1883
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, Array.Empty<PointF>()));
1960
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawArc(null, new Rectangle(0, 0, 1, 1), 0, 90));
1961
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0, 0, 1, 1, 0, 90));
1962
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawArc(null, new RectangleF(0, 0, 1, 1), 0, 90));
1963
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0f, 0f, 1f, 1f, 0, 90));
1974
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 1), 0, 90));
1975
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 1, 1, 0, 90));
1976
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
1977
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 1f, 1f, 0, 90));
1986
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 0, 1), 0, 90));
1987
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 0, 1, 0, 90));
1988
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 0, 1), 0, 90));
1989
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 0f, 1f, 0, 90));
1998
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 0), 0, 90));
1999
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 1, 0, 0, 90));
2000
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 0), 0, 90));
2001
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 1f, 0f, 0, 90));
2032
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2033
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 1, 1, 0, 90));
2034
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2035
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 1f, 1f, 0, 90));
2043
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new Rectangle(0, 0, 1, 1)));
2044
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0, 0, 1, 1));
2045
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0f, 0f, 1f, 1f));
2056
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1)));
2057
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, 0, 0, 1, 1));
2058
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, 0f, 0f, 1f, 1f));
2088
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1)));
2089
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, 0, 0, 1, 1));
2090
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangle(pen, 0f, 0f, 1f, 1f));
2098
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new Rectangle[2]));
2099
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new RectangleF[2]));
2110
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, new Rectangle[2]));
2111
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, new RectangleF[2]));
2120
AssertExtensions.
Throws
<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (Rectangle[])null));
2121
AssertExtensions.
Throws
<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (RectangleF[])null));
2130
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, Array.Empty<Rectangle>()));
2131
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, Array.Empty<RectangleF>()));
2160
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, new Rectangle[2]));
2161
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawRectangles(pen, new RectangleF[2]));
2169
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new Rectangle(0, 0, 1, 1)));
2170
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0, 0, 1, 1));
2171
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new RectangleF(0, 0, 1, 1)));
2172
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0f, 0f, 1f, 1f));
2183
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, new Rectangle(0, 0, 1, 1)));
2184
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, 0, 0, 1, 1));
2185
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1)));
2186
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, 0f, 0f, 1f, 1f));
2217
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, new Rectangle(0, 0, 1, 1)));
2218
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, 0, 0, 1, 1));
2219
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, new RectangleF(0, 0, 1, 1)));
2220
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawEllipse(pen, 0f, 0f, 1f, 1f));
2228
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPie(null, new Rectangle(0, 0, 1, 1), 0, 90));
2229
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0, 0, 1, 1, 0, 90));
2230
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPie(null, new RectangleF(0, 0, 1, 1), 0, 90));
2231
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0f, 0f, 1f, 1f, 0, 90));
2242
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2243
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0, 0, 1, 1, 0, 90));
2244
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2245
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0f, 0f, 1f, 1f, 0, 90));
2254
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new Rectangle(0, 0, 0, 1), 0, 90));
2255
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0, 0, 0, 1, 0, 90));
2256
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 0, 1), 0, 90));
2257
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0f, 0f, 0f, 1f, 0, 90));
2266
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new Rectangle(0, 0, 1, 0), 0, 90));
2267
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0, 0, 1, 0, 0, 90));
2268
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, new RectangleF(0, 0, 1, 0), 0, 90));
2269
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawArc(pen, 0f, 0f, 1f, 0f, 0, 90));
2300
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new Rectangle(0, 0, 1, 1), 0, 90));
2301
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0, 0, 1, 1, 0, 90));
2302
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, new RectangleF(0, 0, 1, 1), 0, 90));
2303
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPie(pen, 0f, 0f, 1f, 1f, 0, 90));
2311
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new Point[2]));
2312
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new PointF[2]));
2323
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[2]));
2324
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new PointF[2]));
2333
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (Point[])null));
2334
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (PointF[])null));
2345
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[length]));
2346
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new PointF[length]));
2375
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new Point[2]));
2376
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPolygon(pen, new PointF[2]));
2385
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawPath(null, graphicsPath));
2397
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPath(pen, graphicsPath));
2406
AssertExtensions.
Throws
<ArgumentNullException>("path", () => graphics.DrawPath(pen, null));
2418
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPath(pen, graphicsPath));
2448
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawPath(pen, graphicsPath));
2456
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2]));
2457
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2]));
2458
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 1));
2459
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 1));
2460
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2));
2461
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 0, 2, 1));
2462
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2, 1));
2473
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2]));
2474
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2]));
2475
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2], 1));
2476
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 1));
2477
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 0, 2));
2478
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2], 0, 2, 1));
2479
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 0, 2, 1));
2488
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null));
2489
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null));
2490
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 1));
2491
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 1));
2492
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, null, 0, 2));
2493
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 0, 2, 1));
2494
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 0, 2, 1));
2505
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[length]));
2506
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length]));
2507
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[length], 1));
2508
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length], 1));
2509
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length], 0, length));
2510
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[length], 0, length, 1));
2511
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length], 0, length, 1));
2525
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length], offset, numberOfSegments));
2526
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[length], offset, numberOfSegments, 1));
2527
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[length], offset, numberOfSegments, 1));
2561
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2]));
2562
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2]));
2563
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2], 1));
2564
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 1));
2565
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 0, 2));
2566
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new Point[2], 0, 2, 1));
2567
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawCurve(pen, new PointF[2], 0, 2, 1));
2575
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3]));
2576
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3], 1, FillMode.Winding));
2577
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3]));
2578
AssertExtensions.
Throws
<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3], 1, FillMode.Winding));
2589
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[3]));
2590
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.Winding));
2591
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[3]));
2592
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.Winding));
2601
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null));
2602
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null, 1, FillMode.Winding));
2603
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null));
2604
AssertExtensions.
Throws
<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null, 1, FillMode.Winding));
2616
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[length]));
2617
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[length], 1, FillMode.Winding));
2618
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[length]));
2619
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[length], 1, FillMode.Winding));
2650
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[3]));
2651
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new Point[3], 1, FillMode.Alternate));
2652
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[3]));
2653
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.DrawClosedCurve(pen, new PointF[3], 1, FillMode.Alternate));
2661
AssertExtensions.
Throws
<ArgumentNullException>("brush", () => graphics.FillPie(null, new Rectangle(0, 0, 1, 1), 0, 90));
2662
AssertExtensions.
Throws
<ArgumentNullException>("brush", () => graphics.FillPie(null, 0, 0, 1, 1, 0, 90));
2663
AssertExtensions.
Throws
<ArgumentNullException>("brush", () => graphics.FillPie(null, 0f, 0f, 1f, 1f, 0, 90));
2674
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new Rectangle(0, 0, 1, 1), 0, 90));
2675
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0, 0, 1, 1, 0, 90));
2676
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0f, 0f, 1f, 1f, 0, 90));
2685
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new Rectangle(0, 0, 0, 1), 0, 90));
2686
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0, 0, 0, 1, 0, 90));
2687
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0f, 0f, 0f, 1f, 0, 90));
2696
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new Rectangle(0, 0, 1, 0), 0, 90));
2697
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0, 0, 1, 0, 0, 90));
2698
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0f, 0f, 1f, 0f, 0, 90));
2728
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, new Rectangle(0, 0, 1, 1), 0, 90));
2729
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0, 0, 1, 1, 0, 90));
2730
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.FillPie(brush, 0f, 0f, 1f, 1f, 0, 90));
2776
AssertExtensions.
Throws
<ArgumentException>(null, () => graphics.Clear(Color.Red));
2794
AssertExtensions.
Throws
<ArgumentException>(
System\Drawing\ImageTests.cs (6)
140
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(PropertyTagExifUserComment));
145
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(PropertyTagLuminanceTable));
160
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(PropertyTagExifUserComment));
165
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(PropertyTagLuminanceTable));
208
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(propid));
218
AssertExtensions.
Throws
<ArgumentException>(null, () => bitmap.RemovePropertyItem(propid));
System\Drawing\Imaging\ImageAttributesTests.cs (68)
220
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrix(_greenComponentToZeroColorMatrix));
221
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrix(_greenComponentToZeroColorMatrix, ColorMatrixFlag.Default));
222
AssertExtensions.
Throws
<ArgumentException>(null, () =>
230
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null));
231
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null, ColorMatrixFlag.Default));
232
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () =>
249
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrix(_greenComponentToZeroColorMatrix, ColorMatrixFlag.Default, type));
266
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrix(_greenComponentToZeroColorMatrix, flag));
267
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrix(_greenComponentToZeroColorMatrix, flag, ColorAdjustType.Default));
326
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearColorMatrix);
327
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearColorMatrix(ColorAdjustType.Default));
335
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearColorMatrix(type));
438
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrices(_greenComponentToZeroColorMatrix, _grayMatrix));
439
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrices(_greenComponentToZeroColorMatrix, _grayMatrix, ColorMatrixFlag.Default));
440
AssertExtensions.
Throws
<ArgumentException>(null, () =>
448
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix));
449
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix, ColorMatrixFlag.Default));
450
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrices(_greenComponentToZeroColorMatrix, null, ColorMatrixFlag.AltGrays));
451
AssertExtensions.
Throws
<ArgumentNullException>("newColorMatrix", () =>
453
AssertExtensions.
Throws
<ArgumentException>(null, () =>
462
AssertExtensions.
Throws
<ArgumentException>(null, () =>
474
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorMatrices(_greenComponentToZeroColorMatrix, _grayMatrix, flag));
475
AssertExtensions.
Throws
<ArgumentException>(null, () =>
523
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetThreshold(0.5f));
531
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetThreshold(0.5f, type));
567
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearThreshold(ColorAdjustType.Default));
575
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearThreshold(type));
622
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetGamma(2.2f));
623
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetGamma(2.2f, ColorAdjustType.Default));
631
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetGamma(2.2f, type));
655
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearGamma(ColorAdjustType.Default));
663
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearGamma(type));
702
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.SetNoOp);
703
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetNoOp(ColorAdjustType.Default));
711
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetNoOp(type));
770
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearNoOp);
771
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearNoOp(ColorAdjustType.Default));
779
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearNoOp(type));
831
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetColorKey(Color.FromArgb(50, 50, 50), Color.FromArgb(150, 150, 150)));
832
AssertExtensions.
Throws
<ArgumentException>(null, () =>
841
AssertExtensions.
Throws
<ArgumentException>(null, () =>
880
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearColorKey);
881
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearColorKey(ColorAdjustType.Default));
889
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearColorKey(type));
976
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannel(ColorChannelFlag.ColorChannelY));
977
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannel(ColorChannelFlag.ColorChannelY, ColorAdjustType.Default));
985
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannel(ColorChannelFlag.ColorChannelY, type));
1002
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannel(flag));
1003
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannel(flag, ColorAdjustType.Default));
1041
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearOutputChannel);
1042
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearOutputChannel(ColorAdjustType.Default));
1050
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearOutputChannel(type));
1072
AssertExtensions.
Throws
<ArgumentException>(null, () =>
1074
AssertExtensions.
Throws
<ArgumentException>(null, () =>
1116
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetOutputChannelColorProfile("path", type));
1156
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearOutputChannelColorProfile);
1157
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearOutputChannelColorProfile(ColorAdjustType.Default));
1165
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearOutputChannelColorProfile(type));
1212
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetRemapTable(_yellowToRedColorMap));
1213
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetRemapTable(_yellowToRedColorMap, ColorAdjustType.Default));
1278
AssertExtensions.
Throws
<ArgumentException>(null, imageAttr.ClearRemapTable);
1279
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearRemapTable(ColorAdjustType.Default));
1287
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.ClearRemapTable(type));
1296
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.Clamp));
1297
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.Clamp, Color.Black));
1298
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.Clamp, Color.Black, true));
1308
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.GetAdjustedPalette(bitmap.Palette, ColorAdjustType.Default));
1324
AssertExtensions.
Throws
<ArgumentException>(null, () => imageAttr.GetAdjustedPalette(bitmap.Palette, type));
System\Drawing\Imaging\MetafileTests.cs (1)
926
AssertExtensions.
Throws
<ArgumentException>(null, () =>
System\Drawing\PenTests.cs (15)
807
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.MultiplyTransform(matrix));
808
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.MultiplyTransform(matrix, MatrixOrder.Prepend));
851
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.MultiplyTransform(matrix));
852
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.MultiplyTransform(matrix, MatrixOrder.Prepend));
878
AssertExtensions.
Throws
<ArgumentException>(null, pen.ResetTransform);
924
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.RotateTransform(10, matrixOrder));
935
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.RotateTransform(1));
936
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.RotateTransform(1, MatrixOrder.Prepend));
984
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.ScaleTransform(1, 2, matrixOrder));
995
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.ScaleTransform(1, 2));
996
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.ScaleTransform(1, 2, MatrixOrder.Prepend));
1026
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.SetLineCap(LineCap.AnchorMask, LineCap.ArrowAnchor, DashCap.Flat));
1159
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.TranslateTransform(1, 2, matrixOrder));
1170
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.TranslateTransform(1, 2));
1171
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.TranslateTransform(1, 2, MatrixOrder.Prepend));
System\Drawing\Printing\PrinterSettingsTests.cs (1)
587
AssertExtensions.
Throws
<ArgumentException>(null, () => printerSettings.SetHdevmode(IntPtr.Zero));
System\Drawing\RegionTests.cs (42)
406
AssertExtensions.
Throws
<ArgumentNullException>("region", () => region.Complement((Region)null));
412
AssertExtensions.
Throws
<ArgumentException>(null, () => new Region().Complement(CreateDisposedRegion()));
509
AssertExtensions.
Throws
<ArgumentNullException>("path", () => region.Complement((GraphicsPath)null));
519
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Complement(graphicPath));
520
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Complement(default(Rectangle)));
521
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Complement(default(RectangleF)));
522
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Complement(disposedRegion));
813
AssertExtensions.
Throws
<ArgumentNullException>("region", () => region.Exclude((Region)null));
819
AssertExtensions.
Throws
<ArgumentException>(null, () => new Region().Exclude(CreateDisposedRegion()));
892
AssertExtensions.
Throws
<ArgumentNullException>("path", () => region.Exclude((GraphicsPath)null));
902
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Exclude(graphicsPath));
903
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Exclude(default(Rectangle)));
904
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Exclude(default(RectangleF)));
905
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Exclude(other));
974
AssertExtensions.
Throws
<ArgumentNullException>("regionHandle", () => region.ReleaseHrgn(IntPtr.Zero));
1146
AssertExtensions.
Throws
<ArgumentNullException>("region", () => region.Intersect((Region)null));
1152
AssertExtensions.
Throws
<ArgumentException>(null, () => new Region().Intersect(CreateDisposedRegion()));
1249
AssertExtensions.
Throws
<ArgumentNullException>("path", () => region.Intersect((GraphicsPath)null));
1259
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Intersect(graphicsPath));
1260
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Intersect(default(Rectangle)));
1261
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Intersect(default(RectangleF)));
1262
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Intersect(other));
1460
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedRegion().MakeEmpty());
1483
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedRegion().MakeInfinite());
1708
AssertExtensions.
Throws
<ArgumentNullException>("region", () => region.Union((Region)null));
1715
AssertExtensions.
Throws
<ArgumentException>(null, () => region.Union(CreateDisposedRegion()));
1788
AssertExtensions.
Throws
<ArgumentNullException>("path", () => region.Union((GraphicsPath)null));
1798
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Union(graphicsPath));
1799
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Union(default(Rectangle)));
1800
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Union(default(RectangleF)));
1801
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Union(disposedRegion));
1876
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => region.Transform(null));
1883
AssertExtensions.
Throws
<ArgumentException>(null, () => CreateDisposedRegion().Transform(matrix));
1967
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Translate(1, 2));
1968
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Translate(1f, 2f));
2066
AssertExtensions.
Throws
<ArgumentNullException>("region", () => region.Xor((Region)null));
2073
AssertExtensions.
Throws
<ArgumentException>(null, () => region.Xor(CreateDisposedRegion()));
2146
AssertExtensions.
Throws
<ArgumentNullException>("path", () => region.Xor((GraphicsPath)null));
2156
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Xor(graphicsPath));
2157
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Xor(default(Rectangle)));
2158
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Xor(default(RectangleF)));
2159
AssertExtensions.
Throws
<ArgumentException>(null, () => disposedRegion.Xor(other));
System\Drawing\SolidBrushTests.cs (1)
112
AssertExtensions.
Throws
<ArgumentException>(null, brush.Dispose);
System\Drawing\StringFormatTests.cs (1)
144
AssertExtensions.
Throws
<ArgumentException>(null, () => format.SetDigitSubstitution(0, StringDigitSubstitute.None));
System\Drawing\SystemPensTest.cs (2)
58
AssertExtensions.
Throws
<ArgumentException>(null, pen.Dispose);
59
AssertExtensions.
Throws
<ArgumentException>(null, () => pen.SetLineCap(LineCap.ArrowAnchor, LineCap.Custom, DashCap.Round));
System\Drawing\Text\PrivateFontCollectionTests.cs (3)
131
AssertExtensions.
Throws
<ArgumentException>(null, () => fontCollection.AddFontFile(typeof(Font).Assembly.Location));
159
AssertExtensions.
Throws
<ArgumentException>(null, () => fontCollection.AddMemoryFont(IntPtr.Zero, 100));
180
AssertExtensions.
Throws
<ArgumentException>(null, () => fontCollection.AddMemoryFont(fontBuffer, length));
System\Drawing\TextureBrushTests.cs (16)
373
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
374
AssertExtensions.
Throws
<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Prepend));
383
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix));
384
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.Prepend));
427
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix));
428
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.MultiplyTransform(matrix, MatrixOrder.Prepend));
453
AssertExtensions.
Throws
<ArgumentException>(null, brush.ResetTransform);
503
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(10, matrixOrder));
514
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(1));
515
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.RotateTransform(1, MatrixOrder.Prepend));
567
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(1, 2, matrixOrder));
578
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(1, 2));
579
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.ScaleTransform(1, 2, MatrixOrder.Prepend));
672
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(1, 2, matrixOrder));
683
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(1, 2));
684
AssertExtensions.
Throws
<ArgumentException>(null, () => brush.TranslateTransform(1, 2, MatrixOrder.Prepend));
System.Windows.Forms.Primitives.TestUtilities (3)
Extensions\AssertExtensions.cs (3)
168
Throws
<TNetCoreExceptionType>(expectedParamName, action);
197
Throws
<TNetFxExceptionType>(netFxParamName, action);
201
Throws
<TNetCoreExceptionType>(netCoreParamName, action);