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