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