23 writes to Positions
System.Drawing.Common.Tests (23)
System\Drawing\Drawing2D\ColorBlendTests.cs (2)
51
ColorBlend blend = new() {
Positions
= null };
54
blend.
Positions
= new float[10];
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (11)
262
Positions
= [0, 10, 1]
379
Positions
= [0, 10, 1]
395
Positions
= [0, 1]
401
Positions
= [0, 0.5f, 1f]
437
Assert.Throws<ArgumentException>(() => brush.InterpolationColors = new ColorBlend { Colors = new Color[2],
Positions
= null });
450
Positions
= new float[positionsLength]
463
Positions
= positions
475
Positions
= [0, 0.5f, 1]
484
Positions
= [0f, 1f]
496
Positions
= [0, 0.5f, 1]
515
Positions
= [0, 0.5f, 1]
System\Drawing\Drawing2D\PathGradientBrushTests.cs (10)
533
brush.InterpolationColors = new ColorBlend() { Colors = expectedColors,
Positions
= expectedPositions };
537
brush.InterpolationColors = new ColorBlend() { Colors = sameColors,
Positions
= expectedPositions };
556
brush.InterpolationColors.
Positions
= [];
558
brush.InterpolationColors.
Positions
= new float[2];
583
brush.InterpolationColors = new ColorBlend() { Colors = null,
Positions
= null });
586
brush.InterpolationColors = new ColorBlend() { Colors = null,
Positions
= new float[2] });
594
brush.InterpolationColors = new ColorBlend() { Colors = new Color[1],
Positions
= null });
609
brush.InterpolationColors = new ColorBlend() { Colors = [],
Positions
= [] });
617
brush.InterpolationColors = new ColorBlend() { Colors = new Color[1],
Positions
= new float[2] });
625
brush.InterpolationColors = new ColorBlend() { Colors = new Color[2],
Positions
= new float[1] });
15 references to Positions
System.Drawing.Common.Tests (15)
System\Drawing\Drawing2D\ColorBlendTests.cs (4)
13
Assert.Equal(new float[1], blend.
Positions
);
23
Assert.Equal(new float[count], blend.
Positions
);
52
Assert.Null(blend.
Positions
);
55
Assert.Equal(new float[10], blend.
Positions
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (6)
384
Assert.Equal(blend.
Positions
, brush.InterpolationColors.
Positions
);
405
Assert.Equal(blend.
Positions
, brush.InterpolationColors.
Positions
);
503
brush.InterpolationColors.
Positions
.Should().HaveCount(1);
527
brush.InterpolationColors.
Positions
.Should().HaveCount(1);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (5)
535
Assert.Equal(expectedPositions, brush.InterpolationColors.
Positions
);
539
Assert.Equal(expectedPositions, brush.InterpolationColors.
Positions
);
557
Assert.Single(brush.InterpolationColors.
Positions
);
559
Assert.Single(brush.InterpolationColors.
Positions
);
948
Assert.Equal([0], brush.InterpolationColors.
Positions
);