Simulate dragging the mouse.
Drag positions the mouse over the control under test at the specified PointF(startX, startY) and then presses the left mouse button. It then moves the mouse to each point specified in the points array. Finally the left button is released.
Exception Type | Condition |
---|---|
ArgumentNullException | When points is null. |
ArgumentException |
When points does not contain at lease two values,
Or, the number of elements is odd. |
using (MouseController mouse = new MouseControler(myTestControl)) { mouse.Drag(0,0, 100,100); }
MouseController Class | NUnit.Extensions.Forms Namespace | MouseController.Drag Overload List