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