9 writes to Blend
System.Drawing.Common.Tests (9)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (9)
286brush.Blend = blend; 305AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend = blend); 312Assert.Throws<ArgumentNullException>(() => brush.Blend = null); 319Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend { Factors = null }); 326AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => brush.Blend = new Blend { Factors = new float[2], Positions = null }); 333AssertExtensions.Throws<ArgumentException>("value", null, () => brush.Blend = new Blend { Factors = new float[2], Positions = new float[1] }); 340AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend = new Blend { Factors = [], Positions = [] }); 350AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend = new Blend()); 520brush.Blend = new Blend
28 references to Blend
System.Drawing.Common.Tests (28)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (28)
25Assert.Equal([1], brush.Blend.Factors); 26Assert.Equal(1, brush.Blend.Positions.Length); 52Assert.Equal([1], brush.Blend.Factors); 53Assert.Equal(1, brush.Blend.Positions.Length); 86Assert.Equal([1], brush.Blend.Factors); 87Assert.Equal(1, brush.Blend.Positions.Length); 103Assert.Equal([1], brush.Blend.Factors); 104Assert.Equal(1, brush.Blend.Positions.Length); 129Assert.Equal([1], brush.Blend.Factors); 130Assert.Equal(1, brush.Blend.Positions.Length); 146Assert.Equal([1], brush.Blend.Factors); 147Assert.Equal(1, brush.Blend.Positions.Length); 172Assert.Equal([1], brush.Blend.Factors); 173Assert.Equal(1, brush.Blend.Positions.Length); 189Assert.Equal([1], brush.Blend.Factors); 190Assert.Equal(1, brush.Blend.Positions.Length); 239Assert.Equal(brush.Blend.Factors, clone.Blend.Factors); 240Assert.Equal(brush.Blend.Positions.Length, clone.Blend.Positions.Length); 266Assert.Null(brush.Blend); 288Assert.Equal(blend.Factors, brush.Blend.Factors); 289Assert.Equal(factors.Length, brush.Blend.Positions.Length); 349AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend); 937Assert.Equal(expectedFactors, brush.Blend.Factors); 938Assert.Equal(expectedPositions, brush.Blend.Positions); 951Assert.Equal(expectedFactors, brush.Blend.Factors); 952Assert.Equal(expectedPositions, brush.Blend.Positions);