14 writes to InterpolationColors
System.Drawing.Common.Tests (14)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (14)
267
brush.
InterpolationColors
= blend;
384
brush.
InterpolationColors
= blend;
394
InterpolationColors
= new ColorBlend
405
brush.
InterpolationColors
= blend;
414
AssertExtensions.Throws<ArgumentNullException>("value", () => brush.
InterpolationColors
= null);
421
Assert.Throws<NullReferenceException>(() => brush.
InterpolationColors
= new ColorBlend { Colors = null });
432
() => brush.
InterpolationColors
= new ColorBlend { Colors = new Color[colorsLength] });
439
Assert.Throws<ArgumentException>(() => brush.
InterpolationColors
= new ColorBlend { Colors = new Color[2], Positions = null });
449
AssertExtensions.Throws<ArgumentException>("value", () => brush.
InterpolationColors
= new ColorBlend
462
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
= new ColorBlend
474
InterpolationColors
= new ColorBlend
483
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
= new ColorBlend
495
InterpolationColors
= new ColorBlend
514
InterpolationColors
= new ColorBlend
21 references to InterpolationColors
System.Drawing.Common.Tests (21)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (21)
31
_ = brush.
InterpolationColors
;
58
_ = brush.
InterpolationColors
;
92
_ = brush.
InterpolationColors
;
109
_ = brush.
InterpolationColors
;
135
_ = brush.
InterpolationColors
;
152
_ = brush.
InterpolationColors
;
178
_ = brush.
InterpolationColors
;
195
_ = brush.
InterpolationColors
;
385
Assert.Equal(blend.Colors.Select(c => Color.FromArgb(c.ToArgb())), brush.
InterpolationColors
.Colors);
386
Assert.Equal(blend.Positions, brush.
InterpolationColors
.Positions);
406
Assert.Equal(blend.Colors.Select(c => Color.FromArgb(c.ToArgb())), brush.
InterpolationColors
.Colors);
407
Assert.Equal(blend.Positions, brush.
InterpolationColors
.Positions);
482
AssertExtensions.Throws<ArgumentException>(null, () => brush.
InterpolationColors
);
502
Assert.NotNull(brush.
InterpolationColors
);
504
brush.
InterpolationColors
.Colors.Should().HaveCount(1);
505
brush.
InterpolationColors
.Positions.Should().HaveCount(1);
506
brush.
InterpolationColors
.Colors[0].IsEmpty.Should().BeTrue();
520
Assert.NotNull(brush.
InterpolationColors
);
528
brush.
InterpolationColors
.Colors.Should().HaveCount(1);
529
brush.
InterpolationColors
.Positions.Should().HaveCount(1);
530
brush.
InterpolationColors
.Colors[0].IsEmpty.Should().BeTrue();