43 references to Empty
System.Drawing.Common.Tests (43)
System\Drawing\Drawing2D\MatrixTests.cs (21)
398
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, PointF.
Empty
, MatrixOrder.Prepend, new float[] { -9.999996f, -19.9999943f, -30.0000019f, -40.0000038f, 50, 60 }, null, false };
399
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, PointF.
Empty
, MatrixOrder.Append, new float[] { -9.999996f, -20, -30f, -40f, -50, -60 }, null, false };
401
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 540, PointF.
Empty
, MatrixOrder.Prepend, new float[] { -9.999996f, -19.9999943f, -30.0000019f, -40.0000038f, 50, 60 }, null, false };
402
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 540, PointF.
Empty
, MatrixOrder.Append, new float[] { -9.999996f, -20, -30f, -40f, -50, -60 }, null, false };
404
yield return new object[] { new Matrix(), 45, PointF.
Empty
, MatrixOrder.Prepend, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
405
yield return new object[] { new Matrix(), 45, PointF.
Empty
, MatrixOrder.Append, new float[] { 0.707106769f, 0.707106769f, -0.707106829f, 0.707106769f, 0, 0 }, null, false };
410
yield return new object[] { rotated45.Clone(), 135, PointF.
Empty
, MatrixOrder.Prepend, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
411
yield return new object[] { rotated45.Clone(), 135, PointF.
Empty
, MatrixOrder.Append, new float[] { -1, 0, 0, -1, 0, 0 }, null, false };
414
yield return new object[] { new Matrix(), 90, PointF.
Empty
, MatrixOrder.Prepend, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
415
yield return new object[] { new Matrix(), 90, PointF.
Empty
, MatrixOrder.Append, new float[] { 0, 1, -1, 0, 0, 0 }, null, false };
420
yield return new object[] { rotated90.Clone(), 270, PointF.
Empty
, MatrixOrder.Prepend, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
421
yield return new object[] { rotated90.Clone(), 270, PointF.
Empty
, MatrixOrder.Append, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
427
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, PointF.
Empty
, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false };
428
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, PointF.
Empty
, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false };
430
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, PointF.
Empty
, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false };
431
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, PointF.
Empty
, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false };
433
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, PointF.
Empty
, MatrixOrder.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 }, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, false };
434
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, PointF.
Empty
, MatrixOrder.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN }, null, false };
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));
System\Drawing\Graphics_DrawBezierTests.cs (12)
67
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
));
80
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawBezier(pen, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
));
94
Assert.Throws<InvalidOperationException>(() => graphics.DrawBezier(pen, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
, PointF.
Empty
));
System\Drawing\Graphics_DrawLineTests.cs (8)
45
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, PointF.
Empty
, PointF.
Empty
));
59
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawLine(pen, PointF.
Empty
, PointF.
Empty
));
74
Assert.Throws<InvalidOperationException>(() => graphics.DrawLine(pen, PointF.
Empty
, PointF.
Empty
));
93
AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawLine(pen, PointF.
Empty
, PointF.
Empty
));
System\Drawing\GraphicsTests.cs (2)
1895
Assert.Throws<InvalidOperationException>(() => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [PointF.
Empty
]));
1911
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, [PointF.
Empty
]));