389 references to MatrixOrder
System.Drawing (1)
System.Drawing.cs (1)
44
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
MatrixOrder
))]
System.Drawing.Common (26)
Special\NotSupported.cs (26)
651
public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
661
public void RotateTransform(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
664
public void ScaleTransform(float sx, float sy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
679
public void TranslateTransform(float dx, float dy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
869
public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
872
public void RotateTransform(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
874
public void ScaleTransform(float sx, float sy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
877
public void TranslateTransform(float dx, float dy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1345
public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1348
public void RotateTransform(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1350
public void ScaleTransform(float sx, float sy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1352
public void TranslateTransform(float dx, float dy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1723
public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1726
public void RotateTransform(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1728
public void ScaleTransform(float sx, float sy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1734
public void TranslateTransform(float dx, float dy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1786
public void Multiply(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1789
public void Rotate(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1791
public void RotateAt(float angle, System.Drawing.PointF point, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1793
public void Scale(float scaleX, float scaleY, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1795
public void Shear(float shearX, float shearY, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1801
public void Translate(float offsetX, float offsetY, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1836
public void MultiplyTransform(System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1839
public void RotateTransform(float angle, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1841
public void ScaleTransform(float sx, float sy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1847
public void TranslateTransform(float dx, float dy, System.Drawing.Drawing2D.
MatrixOrder
order) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (362)
mono\System.Drawing\GraphicsTests.cs (2)
686
g.TranslateTransform(3, -3,
MatrixOrder
.Prepend);
696
g.TranslateTransform(3, -3,
MatrixOrder
.Append);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (45)
668
[InlineData(
MatrixOrder
.Prepend)]
669
[InlineData(
MatrixOrder
.Append)]
670
[InlineData(
MatrixOrder
.Prepend - 1)]
671
[InlineData(
MatrixOrder
.Append + 1)]
672
public void MultiplyTransform_Order_Success(
MatrixOrder
order)
678
if (order is
MatrixOrder
.Append or
MatrixOrder
.Prepend)
685
expectedTransform.Multiply(matrix,
MatrixOrder
.Append);
697
AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null,
MatrixOrder
.Append));
709
brush.MultiplyTransform(matrix,
MatrixOrder
.Append);
720
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix,
MatrixOrder
.Append));
730
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(new Matrix(),
MatrixOrder
.Prepend));
748
[InlineData(1, 1,
MatrixOrder
.Prepend)]
749
[InlineData(1, 1,
MatrixOrder
.Append)]
750
[InlineData(0, 0,
MatrixOrder
.Prepend)]
751
[InlineData(0, 0,
MatrixOrder
.Append)]
752
[InlineData(-1, -1,
MatrixOrder
.Prepend)]
753
[InlineData(-1, -1,
MatrixOrder
.Append)]
754
public void TranslateTransform_Order_Success(float dx, float dy,
MatrixOrder
order)
765
[InlineData(
MatrixOrder
.Prepend - 1)]
766
[InlineData(
MatrixOrder
.Append + 1)]
767
public void TranslateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
780
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(0, 0,
MatrixOrder
.Append));
798
[InlineData(1, 1,
MatrixOrder
.Prepend)]
799
[InlineData(1, 1,
MatrixOrder
.Append)]
800
[InlineData(0, 0,
MatrixOrder
.Prepend)]
801
[InlineData(0, 0,
MatrixOrder
.Append)]
802
[InlineData(-1, -1,
MatrixOrder
.Prepend)]
803
[InlineData(-1, -1,
MatrixOrder
.Append)]
804
public void ScaleTransform_Order_Success(float sx, float sy,
MatrixOrder
order)
815
[InlineData(
MatrixOrder
.Prepend - 1)]
816
[InlineData(
MatrixOrder
.Append + 1)]
817
public void ScaleTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
830
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(0, 0,
MatrixOrder
.Append));
849
[InlineData(1,
MatrixOrder
.Prepend)]
850
[InlineData(1,
MatrixOrder
.Append)]
851
[InlineData(0,
MatrixOrder
.Prepend)]
852
[InlineData(360,
MatrixOrder
.Append)]
853
[InlineData(-1,
MatrixOrder
.Prepend)]
854
[InlineData(-1,
MatrixOrder
.Append)]
855
public void RotateTransform_Order_Success(float angle,
MatrixOrder
order)
866
[InlineData(
MatrixOrder
.Prepend - 1)]
867
[InlineData(
MatrixOrder
.Append + 1)]
868
public void RotateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
881
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(0,
MatrixOrder
.Append));
System\Drawing\Drawing2D\MatrixTests.cs (121)
289
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(10, 20, 30, 40, 50, 60),
MatrixOrder
.Prepend, new float[] { 700, 1000, 1500, 2200, 2350, 3460 } };
290
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(10, 20, 30, 40, 50, 60),
MatrixOrder
.Append, new float[] { 700, 1000, 1500, 2200, 2350, 3460 } };
292
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(),
MatrixOrder
.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
293
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(),
MatrixOrder
.Append, new float[] { 10, 20, 30, 40, 50, 60 } };
295
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(0, 0, 0, 0, 0, 0),
MatrixOrder
.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } };
296
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(0, 0, 0, 0, 0, 0),
MatrixOrder
.Append, new float[] { 0, 0, 0, 0, 0, 0 } };
298
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(1, 1, 1, 1, 1, 1),
MatrixOrder
.Prepend, new float[] { 40, 60, 40, 60, 90, 120 } };
299
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(1, 1, 1, 1, 1, 1),
MatrixOrder
.Append, new float[] { 30, 30, 70, 70, 111, 111 } };
301
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN),
MatrixOrder
.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } };
302
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN),
MatrixOrder
.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } };
304
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity),
MatrixOrder
.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } };
305
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity),
MatrixOrder
.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } };
307
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity),
MatrixOrder
.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } };
308
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity),
MatrixOrder
.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } };
310
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue),
MatrixOrder
.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } };
311
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), new Matrix(float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue),
MatrixOrder
.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } };
316
public void Multiply_Matrix_Success(Matrix matrix, Matrix multiple,
MatrixOrder
order, float[] expected)
321
if (order ==
MatrixOrder
.Prepend)
338
AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null,
MatrixOrder
.Prepend));
342
[InlineData(
MatrixOrder
.Prepend - 1)]
343
[InlineData(
MatrixOrder
.Append + 1)]
344
public void Multiply_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
358
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Multiply(other,
MatrixOrder
.Prepend));
368
AssertExtensions.Throws<ArgumentException>(null, () => matrix.Multiply(disposedMatrix,
MatrixOrder
.Prepend));
376
Assert.Throws<InvalidOperationException>(() => matrix.Multiply(matrix,
MatrixOrder
.Prepend));
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 };
424
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10),
MatrixOrder
.Prepend, new float[] { -10, -20, -30, -40, 850, 1260 }, null, false };
425
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 180, new PointF(10, 10),
MatrixOrder
.Append, new float[] { -10, -20, -30, -40, -30, -40 }, null, false };
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 };
439
public void Rotate_Matrix_Success(Matrix matrix, float angle, PointF point,
MatrixOrder
order, float[] expectedElements, float[] expectedElementsRotateAt, bool isIdentity)
443
if (order ==
MatrixOrder
.Prepend)
477
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Rotate(1,
MatrixOrder
.Append));
481
[InlineData(
MatrixOrder
.Prepend - 1)]
482
[InlineData(
MatrixOrder
.Append + 1)]
483
public void Rotate_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
495
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.RotateAt(1, PointF.Empty,
MatrixOrder
.Append));
499
[InlineData(
MatrixOrder
.Prepend - 1)]
500
[InlineData(
MatrixOrder
.Append + 1)]
501
public void RotateAt_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
509
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4,
MatrixOrder
.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
510
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4,
MatrixOrder
.Append, new float[] { 20, 80, 60, 160, 100, 240 } };
512
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0.5, 0.25,
MatrixOrder
.Prepend, new float[] { 10, 20, 30, 40, 50, 60 } };
513
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0.5, 0.25,
MatrixOrder
.Append, new float[] { 10, 10, 60, 40, 25, 15 } };
515
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0,
MatrixOrder
.Prepend, new float[] { 0, 0, 0, 0, 50, 60 } };
516
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0,
MatrixOrder
.Append, new float[] { 0, 0, 0, 0, 0, 0 } };
518
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1,
MatrixOrder
.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
519
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1,
MatrixOrder
.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
521
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4,
MatrixOrder
.Prepend, new float[] { -20, -40, -120, -160, 50, 60 } };
522
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4,
MatrixOrder
.Append, new float[] { -20, -80, -60, -160, -100, -240 } };
524
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN,
MatrixOrder
.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 } };
525
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN,
MatrixOrder
.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } };
527
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, 50, 60 } };
528
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } };
530
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, 50, 60 } };
531
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } };
533
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue,
MatrixOrder
.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, 50, 60 } };
534
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue,
MatrixOrder
.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } };
539
public void Scale_Matrix_Succss(Matrix matrix, float scaleX, float scaleY,
MatrixOrder
order, float[] expectedElements)
543
if (order ==
MatrixOrder
.Prepend)
556
[InlineData(
MatrixOrder
.Prepend - 1)]
557
[InlineData(
MatrixOrder
.Append + 1)]
558
public void Scale_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
570
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Scale(1, 2,
MatrixOrder
.Append));
575
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4,
MatrixOrder
.Prepend, new float[] { 130, 180, 50, 80, 50, 60 } };
576
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), 2, 4,
MatrixOrder
.Append, new float[] { 50, 60, 110, 160, 170, 260 } };
578
yield return new object[] { new Matrix(5, 3, 9, 2, 2, 1), 10, 20,
MatrixOrder
.Prepend, new float[] { 185, 43, 59, 32, 2, 1 } };
579
yield return new object[] { new Matrix(5, 3, 9, 2, 2, 1), 10, 20,
MatrixOrder
.Append, new float[] { 35, 103, 29, 182, 12, 41 } };
581
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0,
MatrixOrder
.Prepend, new float[] { 20, 40, 120, 160, 50, 60 } };
582
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 0, 0,
MatrixOrder
.Append, new float[] { 20, 40, 120, 160, 50, 60 } };
584
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1,
MatrixOrder
.Prepend, new float[] { 140, 200, 140, 200, 50, 60 } };
585
yield return new object[] { new Matrix(20, 40, 120, 160, 50, 60), 1, 1,
MatrixOrder
.Append, new float[] { 60, 60, 280, 280, 110, 110 } };
587
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4,
MatrixOrder
.Prepend, new float[] { -110, -140, 10, 0, 50, 60 } };
588
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), -2, -4,
MatrixOrder
.Append, new float[] { -30, -20, -50, -80, -70, -140 } };
590
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN,
MatrixOrder
.Prepend, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, 50, 60 } };
591
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NaN, float.NaN,
MatrixOrder
.Append, new float[] { float.NaN, float.NaN, float.NaN, float.NaN, float.NaN, float.NaN } };
593
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Prepend, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, 50, 60 } };
594
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Append, new float[] { float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity } };
596
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Prepend, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, 50, 60 } };
597
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Append, new float[] { float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity } };
599
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue,
MatrixOrder
.Prepend, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, 50, 60 } };
600
yield return new object[] { new Matrix(10, 20, 30, 40, 50, 60), float.MaxValue, float.MaxValue,
MatrixOrder
.Append, new float[] { float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue, float.MaxValue } };
605
public void Shear_Matrix_Succss(Matrix matrix, float shearX, float shearY,
MatrixOrder
order, float[] expectedElements)
609
if (order ==
MatrixOrder
.Prepend)
622
[InlineData(
MatrixOrder
.Prepend - 1)]
623
[InlineData(
MatrixOrder
.Append + 1)]
624
public void Shear_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
636
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Shear(1, 2,
MatrixOrder
.Append));
641
yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), 5, 10,
MatrixOrder
.Prepend, new float[] { 2, 4, 6, 8, 80, 112 } };
642
yield return new object[] { new Matrix(2, 4, 6, 8, 10, 12), 5, 10,
MatrixOrder
.Append, new float[] { 2, 4, 6, 8, 15, 22 } };
644
yield return new object[] { new Matrix(), 5, 10,
MatrixOrder
.Prepend, new float[] { 1, 0, 0, 1, 5, 10 } };
645
yield return new object[] { new Matrix(), 5, 10,
MatrixOrder
.Append, new float[] { 1, 0, 0, 1, 5, 10 } };
647
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NaN, float.NaN,
MatrixOrder
.Prepend, new float[] { 1, 2, 3, 4, float.NaN, float.NaN } };
648
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NaN, float.NaN,
MatrixOrder
.Append, new float[] { 1, 2, 3, 4, float.NaN, float.NaN } };
650
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Prepend, new float[] { 1, 2, 3, 4, float.PositiveInfinity, float.PositiveInfinity } };
651
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.PositiveInfinity, float.PositiveInfinity,
MatrixOrder
.Append, new float[] { 1, 2, 3, 4, float.PositiveInfinity, float.PositiveInfinity } };
653
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Prepend, new float[] { 1, 2, 3, 4, float.NegativeInfinity, float.NegativeInfinity } };
654
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.NegativeInfinity, float.NegativeInfinity,
MatrixOrder
.Append, new float[] { 1, 2, 3, 4, float.NegativeInfinity, float.NegativeInfinity } };
656
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.MaxValue, float.MaxValue,
MatrixOrder
.Prepend, new float[] { 1, 2, 3, 4, float.MaxValue, float.MaxValue } };
657
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), float.MaxValue, float.MaxValue,
MatrixOrder
.Append, new float[] { 1, 2, 3, 4, float.MaxValue, float.MaxValue } };
662
public void Translate_Matrix_Success(Matrix matrix, float offsetX, float offsetY,
MatrixOrder
order, float[] expectedElements)
666
if (order ==
MatrixOrder
.Prepend)
679
[InlineData(
MatrixOrder
.Prepend - 1)]
680
[InlineData(
MatrixOrder
.Append + 1)]
681
public void Translate_InvalidMatrixOrder_ThrowsArgumentException(
MatrixOrder
order)
693
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Translate(1, 2,
MatrixOrder
.Append));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (30)
700
defaultMatrix.Multiply(matrix,
MatrixOrder
.Prepend);
706
[InlineData(
MatrixOrder
.Append)]
707
[InlineData(
MatrixOrder
.Prepend)]
708
public void MultiplyTransform_MatrixMatrixOrder_Success(
MatrixOrder
matrixOrder)
725
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix,
MatrixOrder
.Append));
733
AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null,
MatrixOrder
.Append));
745
brush.MultiplyTransform(matrix,
MatrixOrder
.Append);
755
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix, (
MatrixOrder
)int.MinValue));
764
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(nonInvertible,
MatrixOrder
.Append));
772
matrix.Translate(20f, 30f,
MatrixOrder
.Prepend);
778
[InlineData(
MatrixOrder
.Append)]
779
[InlineData(
MatrixOrder
.Prepend)]
780
public void TranslateTransform_OffsetMatrixOrder_Success(
MatrixOrder
matrixOrder)
795
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(20f, 30f,
MatrixOrder
.Append));
802
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(20f, 30f, (
MatrixOrder
)int.MinValue));
810
matrix.Scale(2, 4,
MatrixOrder
.Prepend);
814
matrix.Scale(0.5f, 0.25f,
MatrixOrder
.Prepend);
818
matrix.Scale(float.MaxValue, float.MinValue,
MatrixOrder
.Prepend);
822
matrix.Scale(float.MinValue, float.MaxValue,
MatrixOrder
.Prepend);
828
[InlineData(
MatrixOrder
.Append)]
829
[InlineData(
MatrixOrder
.Prepend)]
830
public void ScaleTransform_ScaleMatrixOrder_Success(
MatrixOrder
matrixOrder)
845
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(0.25f, 2,
MatrixOrder
.Append));
852
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(1, 1, (
MatrixOrder
)int.MinValue));
860
matrix.Rotate(90,
MatrixOrder
.Prepend);
869
[InlineData(
MatrixOrder
.Append)]
870
[InlineData(
MatrixOrder
.Prepend)]
871
public void RotateTransform_AngleMatrixOrder_Success(
MatrixOrder
matrixOrder)
886
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(45,
MatrixOrder
.Append));
893
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(45, (
MatrixOrder
)int.MinValue));
System\Drawing\GraphicsTests.cs (46)
1200
[InlineData(
MatrixOrder
.Prepend)]
1201
[InlineData(
MatrixOrder
.Append)]
1202
public void MultiplyTransform_Order_Success(
MatrixOrder
order)
1222
AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null,
MatrixOrder
.Append));
1235
brush.MultiplyTransform(matrix,
MatrixOrder
.Append);
1247
AssertExtensions.Throws<ArgumentException>(null, () => graphics.MultiplyTransform(matrix,
MatrixOrder
.Append));
1251
[InlineData(
MatrixOrder
.Prepend - 1)]
1252
[InlineData(
MatrixOrder
.Append + 1)]
1253
public void MultiplyTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
1271
Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix,
MatrixOrder
.Append));
1288
AssertExtensions.Throws<ArgumentException>(null, () => graphics.MultiplyTransform(matrix,
MatrixOrder
.Prepend));
1309
[InlineData(1, 1,
MatrixOrder
.Prepend)]
1310
[InlineData(1, 1,
MatrixOrder
.Append)]
1311
[InlineData(0, 0,
MatrixOrder
.Prepend)]
1312
[InlineData(0, 0,
MatrixOrder
.Append)]
1313
[InlineData(-1, -1,
MatrixOrder
.Prepend)]
1314
[InlineData(-1, -1,
MatrixOrder
.Append)]
1315
public void TranslateTransform_Order_Success(float dx, float dy,
MatrixOrder
order)
1329
[InlineData(
MatrixOrder
.Prepend - 1)]
1330
[InlineData(
MatrixOrder
.Append + 1)]
1331
public void TranslateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
1347
Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0,
MatrixOrder
.Append));
1363
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TranslateTransform(0, 0,
MatrixOrder
.Append));
1383
[InlineData(1, 1,
MatrixOrder
.Prepend)]
1384
[InlineData(1, 1,
MatrixOrder
.Append)]
1385
[InlineData(-1, -1,
MatrixOrder
.Prepend)]
1386
[InlineData(-1, -1,
MatrixOrder
.Append)]
1387
public void ScaleTransform_Order_Success(float sx, float sy,
MatrixOrder
order)
1406
AssertExtensions.Throws<ArgumentException>(null, () => graphics.ScaleTransform(0, 0,
MatrixOrder
.Append));
1410
[InlineData(
MatrixOrder
.Prepend - 1)]
1411
[InlineData(
MatrixOrder
.Append + 1)]
1412
public void ScaleTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
1428
Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0,
MatrixOrder
.Append));
1444
AssertExtensions.Throws<ArgumentException>(null, () => graphics.ScaleTransform(0, 0,
MatrixOrder
.Append));
1466
[InlineData(1,
MatrixOrder
.Prepend)]
1467
[InlineData(1,
MatrixOrder
.Append)]
1468
[InlineData(0,
MatrixOrder
.Prepend)]
1469
[InlineData(360,
MatrixOrder
.Append)]
1470
[InlineData(-1,
MatrixOrder
.Prepend)]
1471
[InlineData(-1,
MatrixOrder
.Append)]
1472
public void RotateTransform_Order_Success(float angle,
MatrixOrder
order)
1486
[InlineData(
MatrixOrder
.Prepend - 1)]
1487
[InlineData(
MatrixOrder
.Append + 1)]
1488
public void RotateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
order)
1504
Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0,
MatrixOrder
.Append));
1520
AssertExtensions.Throws<ArgumentException>(null, () => graphics.RotateTransform(0,
MatrixOrder
.Append));
System\Drawing\PenTests.cs (59)
757
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6),
MatrixOrder
.Prepend };
758
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6),
MatrixOrder
.Append };
759
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7),
MatrixOrder
.Prepend };
760
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7),
MatrixOrder
.Append };
765
public void MultiplyTransform_Matrix_SetsTransformToExpected(Matrix originalTransform, Matrix matrix,
MatrixOrder
matrixOrder)
775
if (matrixOrder ==
MatrixOrder
.Prepend)
798
Assert.Throws<ArgumentNullException>(() => pen.MultiplyTransform(null,
MatrixOrder
.Prepend));
808
AssertExtensions.Throws<ArgumentException>(null, () => pen.MultiplyTransform(matrix,
MatrixOrder
.Prepend));
823
pen.MultiplyTransform(matrix,
MatrixOrder
.Append);
829
[InlineData(
MatrixOrder
.Prepend - 1)]
830
[InlineData(
MatrixOrder
.Append + 1)]
831
public void MultiplyTransform_InvalidOrder_Nop(
MatrixOrder
matrixOrder)
852
AssertExtensions.Throws<ArgumentException>(null, () => pen.MultiplyTransform(matrix,
MatrixOrder
.Prepend));
883
yield return new object[] { new Matrix(), 90,
MatrixOrder
.Prepend };
884
yield return new object[] { new Matrix(), 90,
MatrixOrder
.Append };
885
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0,
MatrixOrder
.Prepend };
886
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0,
MatrixOrder
.Append };
887
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360,
MatrixOrder
.Prepend };
888
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360,
MatrixOrder
.Append };
889
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45,
MatrixOrder
.Prepend };
890
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45,
MatrixOrder
.Append };
895
public void RotateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float angle,
MatrixOrder
matrixOrder)
905
if (matrixOrder ==
MatrixOrder
.Prepend)
918
[InlineData(
MatrixOrder
.Prepend - 1)]
919
[InlineData(
MatrixOrder
.Append + 1)]
920
public void RotateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
936
AssertExtensions.Throws<ArgumentException>(null, () => pen.RotateTransform(1,
MatrixOrder
.Prepend));
941
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Prepend };
942
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Append };
943
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Prepend };
944
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Append };
945
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Prepend };
946
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Append };
947
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Prepend };
948
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Append };
949
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Prepend };
950
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Append };
955
public void ScaleTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float scaleX, float scaleY,
MatrixOrder
matrixOrder)
965
if (matrixOrder ==
MatrixOrder
.Prepend)
978
[InlineData(
MatrixOrder
.Prepend - 1)]
979
[InlineData(
MatrixOrder
.Append + 1)]
980
public void ScaleTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
996
AssertExtensions.Throws<ArgumentException>(null, () => pen.ScaleTransform(1, 2,
MatrixOrder
.Prepend));
1116
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Prepend };
1117
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Append };
1118
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Prepend };
1119
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Append };
1120
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Prepend };
1121
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Append };
1122
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Prepend };
1123
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Append };
1124
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Prepend };
1125
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Append };
1130
public void TranslateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float dX, float dY,
MatrixOrder
matrixOrder)
1140
if (matrixOrder ==
MatrixOrder
.Prepend)
1153
[InlineData(
MatrixOrder
.Prepend - 1)]
1154
[InlineData(
MatrixOrder
.Append + 1)]
1155
public void TranslateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
1171
AssertExtensions.Throws<ArgumentException>(null, () => pen.TranslateTransform(1, 2,
MatrixOrder
.Prepend));
System\Drawing\TextureBrushTests.cs (59)
333
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6),
MatrixOrder
.Prepend };
334
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6),
MatrixOrder
.Append };
335
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7),
MatrixOrder
.Prepend };
336
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7),
MatrixOrder
.Append };
341
public void MultiplyTransform_Matrix_SetsTransformToExpected(Matrix originalTransform, Matrix matrix,
MatrixOrder
matrixOrder)
351
if (matrixOrder ==
MatrixOrder
.Prepend)
374
AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null,
MatrixOrder
.Prepend));
384
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix,
MatrixOrder
.Prepend));
399
brush.MultiplyTransform(matrix,
MatrixOrder
.Append);
405
[InlineData(
MatrixOrder
.Prepend - 1)]
406
[InlineData(
MatrixOrder
.Append + 1)]
407
public void MultiplyTransform_InvalidOrder_Nop(
MatrixOrder
matrixOrder)
428
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(matrix,
MatrixOrder
.Prepend));
458
yield return new object[] { new Matrix(), 90,
MatrixOrder
.Prepend };
459
yield return new object[] { new Matrix(), 90,
MatrixOrder
.Append };
460
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0,
MatrixOrder
.Prepend };
461
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0,
MatrixOrder
.Append };
462
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360,
MatrixOrder
.Prepend };
463
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360,
MatrixOrder
.Append };
464
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45,
MatrixOrder
.Prepend };
465
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45,
MatrixOrder
.Append };
470
public void RotateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float angle,
MatrixOrder
matrixOrder)
480
if (matrixOrder ==
MatrixOrder
.Prepend)
497
[InlineData(
MatrixOrder
.Prepend - 1)]
498
[InlineData(
MatrixOrder
.Append + 1)]
499
public void RotateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
515
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(1,
MatrixOrder
.Prepend));
520
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Prepend };
521
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Append };
522
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Prepend };
523
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Append };
524
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Prepend };
525
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Append };
526
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Prepend };
527
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Append };
528
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Prepend };
529
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Append };
534
public void ScaleTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float scaleX, float scaleY,
MatrixOrder
matrixOrder)
544
if (matrixOrder ==
MatrixOrder
.Prepend)
561
[InlineData(
MatrixOrder
.Prepend - 1)]
562
[InlineData(
MatrixOrder
.Append + 1)]
563
public void ScaleTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
579
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(1, 2,
MatrixOrder
.Prepend));
625
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Prepend };
626
yield return new object[] { new Matrix(), 2, 3,
MatrixOrder
.Append };
627
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Prepend };
628
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0,
MatrixOrder
.Append };
629
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Prepend };
630
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1,
MatrixOrder
.Append };
631
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Prepend };
632
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3,
MatrixOrder
.Append };
633
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Prepend };
634
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75,
MatrixOrder
.Append };
639
public void TranslateTransform_Invoke_SetsTransformToExpected(Matrix originalTransform, float dX, float dY,
MatrixOrder
matrixOrder)
649
if (matrixOrder ==
MatrixOrder
.Prepend)
666
[InlineData(
MatrixOrder
.Prepend - 1)]
667
[InlineData(
MatrixOrder
.Append + 1)]
668
public void TranslateTransform_InvalidOrder_ThrowsArgumentException(
MatrixOrder
matrixOrder)
684
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(1, 2,
MatrixOrder
.Prepend));