24 instantiations of Blend
System.Drawing.Common.Tests (24)
System\Drawing\Drawing2D\BlendTests.cs (6)
11
Blend blend =
new
();
21
Blend blend =
new
(count);
29
Assert.Throws<OverflowException>(() => new
Blend
(-1));
35
Assert.Throws<OutOfMemoryException>(() => new
Blend
(int.MaxValue));
41
Blend blend =
new
() { Factors = null };
51
Blend blend =
new
() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (8)
281
Blend blend =
new
()
300
Blend blend =
new
()
319
Assert.Throws<ArgumentNullException>(() => brush.Blend = new
Blend
{ Factors = null });
326
AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => brush.Blend = new
Blend
{ Factors = new float[2], Positions = null });
333
AssertExtensions.Throws<ArgumentException>("value", null, () => brush.Blend = new
Blend
{ Factors = new float[2], Positions = new float[1] });
340
AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend = new
Blend
{ Factors = [], Positions = [] });
350
AssertExtensions.Throws<ArgumentException>(null, () => brush.Blend = new
Blend
());
520
brush.Blend = new
Blend
System\Drawing\Drawing2D\PathGradientBrushTests.cs (10)
257
brush.Blend = new
Blend
{ Factors = factors, Positions = positions };
297
yield return new object[] { new
Blend
() { Factors = [], Positions = [] } };
298
yield return new object[] { new
Blend
() { Factors = new float[2], Positions = [1, 1] } };
299
yield return new object[] { new
Blend
() { Factors = new float[2], Positions = [0, 5] } };
300
yield return new object[] { new
Blend
() { Factors = new float[3], Positions = [0, 1, 5] } };
301
yield return new object[] { new
Blend
() { Factors = new float[3], Positions = [1, 1, 1] } };
315
Blend invalidBlend =
new
() { Factors = new float[2], Positions = new float[1] };
326
Assert.Throws<ArgumentNullException>(() => brush.Blend = new
Blend
() { Factors = null, Positions = null });
327
Assert.Throws<ArgumentNullException>(() => brush.Blend = new
Blend
() { Factors = null, Positions = [] });
335
brush.Blend = new
Blend
() { Factors = [], Positions = null });
11 references to Blend
System.Drawing (1)
System.Drawing.cs (1)
21
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
Blend
))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
1714
public System.Drawing.Drawing2D.
Blend
? Blend { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1825
public System.Drawing.Drawing2D.
Blend
Blend { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (8)
System\Drawing\Drawing2D\BlendTests.cs (4)
11
Blend
blend = new();
21
Blend
blend = new(count);
41
Blend
blend = new() { Factors = null };
51
Blend
blend = new() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
281
Blend
blend = new()
300
Blend
blend = new()
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
306
public void Blend_InvalidFactorPositions_ThrowsArgumentException(
Blend
blend)
315
Blend
invalidBlend = new() { Factors = new float[2], Positions = new float[1] };