153 references to Append
System.Drawing.Common.Tests (153)
mono\System.Drawing\GraphicsTests.cs (1)
696
g.TranslateTransform(3, -3, MatrixOrder.
Append
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (22)
669
[InlineData(MatrixOrder.
Append
)]
671
[InlineData(MatrixOrder.
Append
+ 1)]
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
));
749
[InlineData(1, 1, MatrixOrder.
Append
)]
751
[InlineData(0, 0, MatrixOrder.
Append
)]
753
[InlineData(-1, -1, MatrixOrder.
Append
)]
766
[InlineData(MatrixOrder.
Append
+ 1)]
780
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(0, 0, MatrixOrder.
Append
));
799
[InlineData(1, 1, MatrixOrder.
Append
)]
801
[InlineData(0, 0, MatrixOrder.
Append
)]
803
[InlineData(-1, -1, MatrixOrder.
Append
)]
816
[InlineData(MatrixOrder.
Append
+ 1)]
830
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(0, 0, MatrixOrder.
Append
));
850
[InlineData(1, MatrixOrder.
Append
)]
852
[InlineData(360, MatrixOrder.
Append
)]
854
[InlineData(-1, MatrixOrder.
Append
)]
867
[InlineData(MatrixOrder.
Append
+ 1)]
881
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(0, MatrixOrder.
Append
));
System\Drawing\Drawing2D\MatrixTests.cs (53)
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
343
[InlineData(MatrixOrder.
Append
+ 1)]
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 };
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 };
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 };
411
yield return new object[] { rotated45.Clone(), 135, PointF.Empty, MatrixOrder.
Append
, new float[] { -1, 0, 0, -1, 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 };
421
yield return new object[] { rotated90.Clone(), 270, PointF.Empty, MatrixOrder.
Append
, new float[] { 1, 0, 0, 1, 0, 0 }, null, true };
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 };
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 };
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 };
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 };
477
AssertExtensions.Throws<ArgumentException>(null, () => CreateDisposedMatrix().Rotate(1, MatrixOrder.
Append
));
482
[InlineData(MatrixOrder.
Append
+ 1)]
495
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.RotateAt(1, PointF.Empty, MatrixOrder.
Append
));
500
[InlineData(MatrixOrder.
Append
+ 1)]
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
557
[InlineData(MatrixOrder.
Append
+ 1)]
570
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Scale(1, 2, MatrixOrder.
Append
));
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
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 } };
623
[InlineData(MatrixOrder.
Append
+ 1)]
636
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Shear(1, 2, MatrixOrder.
Append
));
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 } };
645
yield return new object[] { new Matrix(), 5, 10, MatrixOrder.
Append
, new float[] { 1, 0, 0, 1, 5, 10 } };
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 } };
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 } };
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 } };
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 } };
680
[InlineData(MatrixOrder.
Append
+ 1)]
693
AssertExtensions.Throws<ArgumentException>(null, () => disposedMatrix.Translate(1, 2, MatrixOrder.
Append
));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (11)
706
[InlineData(MatrixOrder.
Append
)]
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
);
764
AssertExtensions.Throws<ArgumentException>(null, () => brush.MultiplyTransform(nonInvertible, MatrixOrder.
Append
));
778
[InlineData(MatrixOrder.
Append
)]
795
AssertExtensions.Throws<ArgumentException>(null, () => brush.TranslateTransform(20f, 30f, MatrixOrder.
Append
));
828
[InlineData(MatrixOrder.
Append
)]
845
AssertExtensions.Throws<ArgumentException>(null, () => brush.ScaleTransform(0.25f, 2, MatrixOrder.
Append
));
869
[InlineData(MatrixOrder.
Append
)]
886
AssertExtensions.Throws<ArgumentException>(null, () => brush.RotateTransform(45, MatrixOrder.
Append
));
System\Drawing\GraphicsTests.cs (24)
1201
[InlineData(MatrixOrder.
Append
)]
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
));
1252
[InlineData(MatrixOrder.
Append
+ 1)]
1271
Assert.Throws<InvalidOperationException>(() => graphics.MultiplyTransform(matrix, MatrixOrder.
Append
));
1310
[InlineData(1, 1, MatrixOrder.
Append
)]
1312
[InlineData(0, 0, MatrixOrder.
Append
)]
1314
[InlineData(-1, -1, MatrixOrder.
Append
)]
1330
[InlineData(MatrixOrder.
Append
+ 1)]
1347
Assert.Throws<InvalidOperationException>(() => graphics.TranslateTransform(0, 0, MatrixOrder.
Append
));
1363
AssertExtensions.Throws<ArgumentException>(null, () => graphics.TranslateTransform(0, 0, MatrixOrder.
Append
));
1384
[InlineData(1, 1, MatrixOrder.
Append
)]
1386
[InlineData(-1, -1, MatrixOrder.
Append
)]
1406
AssertExtensions.Throws<ArgumentException>(null, () => graphics.ScaleTransform(0, 0, MatrixOrder.
Append
));
1411
[InlineData(MatrixOrder.
Append
+ 1)]
1428
Assert.Throws<InvalidOperationException>(() => graphics.ScaleTransform(0, 0, MatrixOrder.
Append
));
1444
AssertExtensions.Throws<ArgumentException>(null, () => graphics.ScaleTransform(0, 0, MatrixOrder.
Append
));
1467
[InlineData(1, MatrixOrder.
Append
)]
1469
[InlineData(360, MatrixOrder.
Append
)]
1471
[InlineData(-1, MatrixOrder.
Append
)]
1487
[InlineData(MatrixOrder.
Append
+ 1)]
1504
Assert.Throws<InvalidOperationException>(() => graphics.RotateTransform(0, MatrixOrder.
Append
));
1520
AssertExtensions.Throws<ArgumentException>(null, () => graphics.RotateTransform(0, MatrixOrder.
Append
));
System\Drawing\PenTests.cs (21)
758
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.
Append
};
760
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.
Append
};
823
pen.MultiplyTransform(matrix, MatrixOrder.
Append
);
830
[InlineData(MatrixOrder.
Append
+ 1)]
884
yield return new object[] { new Matrix(), 90, MatrixOrder.
Append
};
886
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.
Append
};
888
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.
Append
};
890
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.
Append
};
919
[InlineData(MatrixOrder.
Append
+ 1)]
942
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Append
};
944
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Append
};
946
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Append
};
948
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Append
};
950
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Append
};
979
[InlineData(MatrixOrder.
Append
+ 1)]
1117
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Append
};
1119
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Append
};
1121
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Append
};
1123
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Append
};
1125
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Append
};
1154
[InlineData(MatrixOrder.
Append
+ 1)]
System\Drawing\TextureBrushTests.cs (21)
334
yield return new object[] { new Matrix(), new Matrix(1, 2, 3, 4, 5, 6), MatrixOrder.
Append
};
336
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), new Matrix(2, 3, 4, 5, 6, 7), MatrixOrder.
Append
};
399
brush.MultiplyTransform(matrix, MatrixOrder.
Append
);
406
[InlineData(MatrixOrder.
Append
+ 1)]
459
yield return new object[] { new Matrix(), 90, MatrixOrder.
Append
};
461
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, MatrixOrder.
Append
};
463
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 360, MatrixOrder.
Append
};
465
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -45, MatrixOrder.
Append
};
498
[InlineData(MatrixOrder.
Append
+ 1)]
521
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Append
};
523
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Append
};
525
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Append
};
527
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Append
};
529
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Append
};
562
[InlineData(MatrixOrder.
Append
+ 1)]
626
yield return new object[] { new Matrix(), 2, 3, MatrixOrder.
Append
};
628
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0, 0, MatrixOrder.
Append
};
630
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 1, 1, MatrixOrder.
Append
};
632
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), -2, -3, MatrixOrder.
Append
};
634
yield return new object[] { new Matrix(1, 2, 3, 4, 5, 6), 0.5, 0.75, MatrixOrder.
Append
};
667
[InlineData(MatrixOrder.
Append
+ 1)]