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