5 writes to SurroundColors
System.Drawing.Common.Tests (5)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
167brush.SurroundColors = expectedColors; 169brush.SurroundColors = sameColors; 194AssertExtensions.Throws<ArgumentException>(null, () => brush.SurroundColors = colors); 208AssertExtensions.Throws<ArgumentException>(null, () => brush.SurroundColors = colors); 215AssertExtensions.Throws<ArgumentNullException>(() => brush.SurroundColors = null);
8 references to SurroundColors
System.Drawing.Common.Tests (8)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (8)
168Assert.Equal(expectedColors, brush.SurroundColors); 170Assert.Equal(expectedSameColors, brush.SurroundColors); 180brush.SurroundColors.ToList().AddRange(colors); 181Assert.Equal(defaultColors, brush.SurroundColors); 182brush.SurroundColors[0] = Color.FromArgb(255, 0, 0, 255); 183Assert.NotEqual(Color.FromArgb(255, 0, 0, 255), brush.SurroundColors[0]); 184Assert.Equal(defaultColors, brush.SurroundColors); 949Assert.Equal(new Color[] { Color.FromArgb(255, 255, 255, 255) }, brush.SurroundColors);