5 writes to SurroundColors
System.Drawing.Common.Tests (5)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
165brush.SurroundColors = expectedColors; 167brush.SurroundColors = sameColors; 192AssertExtensions.Throws<ArgumentException>(null, () => brush.SurroundColors = colors); 206AssertExtensions.Throws<ArgumentException>(null, () => brush.SurroundColors = colors); 213AssertExtensions.Throws<ArgumentNullException>(() => brush.SurroundColors = null);
8 references to SurroundColors
System.Drawing.Common.Tests (8)
System\Drawing\Drawing2D\PathGradientBrushTests.cs (8)
166Assert.Equal(expectedColors, brush.SurroundColors); 168Assert.Equal(expectedSameColors, brush.SurroundColors); 178brush.SurroundColors.ToList().AddRange(colors); 179Assert.Equal(defaultColors, brush.SurroundColors); 180brush.SurroundColors[0] = Color.FromArgb(255, 0, 0, 255); 181Assert.NotEqual(Color.FromArgb(255, 0, 0, 255), brush.SurroundColors[0]); 182Assert.Equal(defaultColors, brush.SurroundColors); 947Assert.Equal(new Color[] { Color.FromArgb(255, 255, 255, 255) }, brush.SurroundColors);