3 writes to Transform
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
578
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) {
Transform
= transform };
586
AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.
Transform
= null);
596
AssertExtensions.Throws<ArgumentException>(null, () => brush.
Transform
= new Matrix());
34 references to Transform
System.Drawing.Common.Tests (34)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (32)
34
Assert.False(brush.
Transform
.IsIdentity);
61
Assert.False(brush.
Transform
.IsIdentity);
95
Assert.Equal(linearGradientMode == LinearGradientMode.Horizontal, brush.
Transform
.IsIdentity);
112
Assert.Equal(linearGradientMode == LinearGradientMode.Horizontal, brush.
Transform
.IsIdentity);
138
Assert.Equal((angle % 360) == 0, brush.
Transform
.IsIdentity);
155
Assert.Equal((angle % 360) == 0, brush.
Transform
.IsIdentity);
181
Assert.Equal((angle % 360) == 0, brush.
Transform
.IsIdentity);
198
Assert.Equal((angle % 360) == 0, brush.
Transform
.IsIdentity);
243
Assert.Equal(brush.
Transform
, clone.
Transform
);
579
Assert.Equal(transform, brush.
Transform
);
595
AssertExtensions.Throws<ArgumentException>(null, () => brush.
Transform
);
640
Assert.False(brush.
Transform
.IsIdentity);
643
Assert.True(brush.
Transform
.IsIdentity);
660
Matrix expectedTransform = brush.
Transform
;
664
Assert.Equal(expectedTransform, brush.
Transform
);
676
Matrix expectedTransform = brush.
Transform
;
689
Assert.Equal(expectedTransform, brush.
Transform
);
704
using Matrix transform = brush.
Transform
;
711
Assert.Equal(transform, brush.
Transform
);
740
Matrix expectedTransform = brush.
Transform
;
744
Assert.Equal(expectedTransform, brush.
Transform
);
757
Matrix expectedTransform = brush.
Transform
;
761
Assert.Equal(expectedTransform, brush.
Transform
);
790
Matrix expectedTransform = brush.
Transform
;
794
Assert.Equal(expectedTransform, brush.
Transform
);
807
Matrix expectedTransform = brush.
Transform
;
811
Assert.Equal(expectedTransform, brush.
Transform
);
841
Matrix expectedTransform = brush.
Transform
;
845
Assert.Equal(expectedTransform, brush.
Transform
);
858
Matrix expectedTransform = brush.
Transform
;
862
Assert.Equal(expectedTransform, brush.
Transform
);
System\Drawing\GraphicsTests.cs (2)
1229
Matrix transform = brush.
Transform
;
1237
Assert.Equal(transform, brush.
Transform
);