6 references to DrawScrollButton
System.Windows.Forms.Tests (6)
System\Windows\Forms\ControlPaintTests.cs (6)
1751
ControlPaint.
DrawScrollButton
(graphics, rectangle, button, state);
1754
ControlPaint.
DrawScrollButton
(graphics, rectangle, button, state);
1774
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawScrollButton
(null, new Rectangle(1, 2, 3, 4), ScrollButton.Up, state));
1788
Assert.Throws<ArgumentException>(() => ControlPaint.
DrawScrollButton
(graphics, new Rectangle(0, 0, width, height), ScrollButton.Up, state));
1799
Assert.Throws<ArgumentOutOfRangeException>("width", () => ControlPaint.
DrawScrollButton
(graphics, new Rectangle(0, 0, -3, 4), ScrollButton.Up, state));
1810
Assert.Throws<ArgumentOutOfRangeException>("height", () => ControlPaint.
DrawScrollButton
(graphics, new Rectangle(0, 0, 3, -4), ScrollButton.Up, state));