2 writes to GammaCorrection
System.Drawing.Common.Tests (2)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
358
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true) {
GammaCorrection
= gammaCorrection };
369
AssertExtensions.Throws<ArgumentException>(null, () => brush.
GammaCorrection
= true);
10 references to GammaCorrection
System.Drawing.Common.Tests (10)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (10)
28
Assert.False(brush.
GammaCorrection
);
55
Assert.False(brush.
GammaCorrection
);
89
Assert.False(brush.
GammaCorrection
);
106
Assert.False(brush.
GammaCorrection
);
132
Assert.False(brush.
GammaCorrection
);
149
Assert.False(brush.
GammaCorrection
);
175
Assert.False(brush.
GammaCorrection
);
192
Assert.False(brush.
GammaCorrection
);
359
Assert.Equal(gammaCorrection, brush.
GammaCorrection
);
368
AssertExtensions.Throws<ArgumentException>(null, () => brush.
GammaCorrection
);