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.Single(brush.Blend.Positions); 52Assert.Equal([1], brush.Blend.Factors); 53Assert.Single(brush.Blend.Positions); 86Assert.Equal([1], brush.Blend.Factors); 87Assert.Single(brush.Blend.Positions); 103Assert.Equal([1], brush.Blend.Factors); 104Assert.Single(brush.Blend.Positions); 129Assert.Equal([1], brush.Blend.Factors); 130Assert.Single(brush.Blend.Positions); 146Assert.Equal([1], brush.Blend.Factors); 147Assert.Single(brush.Blend.Positions); 172Assert.Equal([1], brush.Blend.Factors); 173Assert.Single(brush.Blend.Positions); 189Assert.Equal([1], brush.Blend.Factors); 190Assert.Single(brush.Blend.Positions); 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);