21 references to Clamp
System.Drawing.Common.Tests (21)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
612
[InlineData(WrapMode.
Clamp
+ 1)]
623
AssertExtensions.Throws<ArgumentException>(null, () => brush.WrapMode = WrapMode.
Clamp
);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (7)
40
Assert.Equal(WrapMode.
Clamp
, bi.WrapMode);
42
Assert.Equal(WrapMode.
Clamp
, bf.WrapMode);
47
yield return new object[] { WrapMode.
Clamp
};
79
Assert.Throws<ArgumentException>(() => new PathGradientBrush(new Point[pointsLength], WrapMode.
Clamp
));
81
Assert.Throws<ArgumentException>(() => new PathGradientBrush(new PointF[pointsLength], WrapMode.
Clamp
));
100
Assert.Equal(WrapMode.
Clamp
, brush.WrapMode);
125
Assert.Equal(WrapMode.
Clamp
, clone.WrapMode);
System\Drawing\Imaging\ImageAttributesTests.cs (3)
1296
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.
Clamp
));
1297
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.
Clamp
, Color.Black));
1298
AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.
Clamp
, Color.Black, true));
System\Drawing\TextureBrushTests.cs (9)
50
yield return new object[] { ((Image)data[0]).Clone(), WrapMode.
Clamp
, data[1], data[2] };
131
yield return new object[] { ((Image)data[0]).Clone(), WrapMode.
Clamp
, data[1] };
186
yield return new object[] { ((Image)data[0]).Clone(), data[1], new ImageAttributes(), WrapMode.
Clamp
};
269
[InlineData(WrapMode.
Clamp
+ 1)]
303
using TextureBrush brush = new(image, WrapMode.
Clamp
);
308
Assert.Equal(WrapMode.
Clamp
, clone.WrapMode);
688
[InlineData(WrapMode.
Clamp
)]
703
[InlineData(WrapMode.
Clamp
+ 1)]
730
VerifyFillRect(WrapMode.
Clamp
,