14 writes to InterpolationColors
System.Drawing.Common.Tests (14)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (14)
265
brush.
InterpolationColors
= blend;
382
brush.
InterpolationColors
= blend;
392
InterpolationColors
= new ColorBlend
403
brush.
InterpolationColors
= blend;
412
AssertExtensions.Throws<ArgumentNullException>("value", () => brush.
InterpolationColors
= null);
419
Assert.Throws<NullReferenceException>(() => brush.
InterpolationColors
= new ColorBlend { Colors = null });
430
() => brush.
InterpolationColors
= new ColorBlend { Colors = new Color[colorsLength] });
437
Assert.Throws<ArgumentException>(() => brush.
InterpolationColors
= new ColorBlend { Colors = new Color[2], Positions = null });
447
AssertExtensions.Throws<ArgumentException>("value", () => brush.
InterpolationColors
= new ColorBlend
460
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
= new ColorBlend
472
InterpolationColors
= new ColorBlend
481
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
= new ColorBlend
493
InterpolationColors
= new ColorBlend
512
InterpolationColors
= new ColorBlend
21 references to InterpolationColors
System.Drawing.Common.Tests (21)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (21)
29
_ = brush.
InterpolationColors
;
56
_ = brush.
InterpolationColors
;
90
_ = brush.
InterpolationColors
;
107
_ = brush.
InterpolationColors
;
133
_ = brush.
InterpolationColors
;
150
_ = brush.
InterpolationColors
;
176
_ = brush.
InterpolationColors
;
193
_ = brush.
InterpolationColors
;
383
Assert.Equal(blend.Colors.Select(c => Color.FromArgb(c.ToArgb())), brush.
InterpolationColors
.Colors);
384
Assert.Equal(blend.Positions, brush.
InterpolationColors
.Positions);
404
Assert.Equal(blend.Colors.Select(c => Color.FromArgb(c.ToArgb())), brush.
InterpolationColors
.Colors);
405
Assert.Equal(blend.Positions, brush.
InterpolationColors
.Positions);
480
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
);
500
Assert.NotNull(brush.
InterpolationColors
);
502
brush.
InterpolationColors
.Colors.Should().HaveCount(1);
503
brush.
InterpolationColors
.Positions.Should().HaveCount(1);
504
brush.
InterpolationColors
.Colors[0].IsEmpty.Should().BeTrue();
518
Assert.NotNull(brush.
InterpolationColors
);
526
brush.
InterpolationColors
.Colors.Should().HaveCount(1);
527
brush.
InterpolationColors
.Positions.Should().HaveCount(1);
528
brush.
InterpolationColors
.Colors[0].IsEmpty.Should().BeTrue();