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