| Visit Count | +Line | +Column | +End Line | +End Column | +Document | +
+ TextBoxTester textBox = new TextBoxTester("myTextBox");
+ using (MouseController mouse = textBox.MouseController())
+ {
+ mouse.Position = new PointF(1,1);
+ mouse.Drag(30,1);
+ }
+
+
+ [Test]
+ public void TextBox()
+ {
+ new TextBoxTestForm().Show();
+ TextBoxTester box = new TextBoxTester( "myTextBox", CurrentForm );
+ Assert.AreEqual( "default", box.Text );
+
+ Keyboard.UseOn( box );
+
+ Keyboard.Click( Key.A );
+ Keyboard.Click( Key.B );
+ Keyboard.Press( Key.SHIFT );
+ Keyboard.Click( Key.C );
+ Keyboard.Release( Key.SHIFT );
+
+ Assert.AreEqual( "abC", box.Text );
+ }
+
+
+ public void MessageBoxHandler
+ {
+ MessageBoxTester messageBox = new MessageBoxTester( "MessageBoxName" );
+ Assert.AreEqual( "MessageBoxText", messageBox.Text );
+ Assert.AreEqual( "MessageBoxTitle", messageBox.Title );
+ messageBox.SendCommand( MessageBoxTester.Command.OK );
+ }
+
+
+ [TestFixture] public class ATest : NUnitFormTest
+ {
+ // Gets the Form used for testing.
+ public override Type FormType
+ {
+ get {return typeof(MyTestForm);}
+ }
+
+ [Test] public void Selecting()
+ {
+ ControlTester myControl = new ControlTester("myControl", CurrentForm);
+ using (MouseController mouse = myControl.MouseController())
+ {
+ mouse.Drag (10,10, 20,20);
+ AssertEquals (1, myControl.Properties.SelectedObjects.Count);
+ }
+ }
+
+
+ using (MouseController mouse = new MouseControler(myTestControl))
+ {
+ mouse.Position = new PointF(1,1);
+ mouse.Press(MouseButtons.Middle);
+ }
+
+
+ [TestFixture] public class ATest : NUnitFormTest
+ {
+ // Gets the Form used for testing.
+ public override Type FormType
+ {
+ get {return typeof(MyTestForm);}
+ }
+
+ [Test] public void Selecting()
+ {
+ ControlTester myControl = new ControlTester("myControl", CurrentForm);
+ using (MouseController mouse = myControl.MouseController())
+ {
+ mouse.Drag (10,10, 20,20);
+ AssertEquals (1, myControl.Properties.SelectedObjects.Count);
+
+ mouse.Press(Keys.Shift);
+ mouse.Drag(100,100, 200,200);
+ mouse.Release(Keys.Shift);
+ AssertEquals (2, myControl.Properties.SelectedObjects.Count);
+ }
+ }
+
+
+ [TestFixture] public class ATest : NUnitFormTest
+ {
+ // Gets the Form used for testing.
+ public override Type FormType
+ {
+ get {return typeof(MyTestForm);}
+ }
+
+ [Test] public void Selecting()
+ {
+ ControlTester myControl = new ControlTester("myControl", CurrentForm);
+ using (MouseController mouse = myControl.MouseController())
+ {
+ mouse.Drag (10,10, 20,20);
+ AssertEquals (1, myControl.Properties.SelectedObjects.Count);
+
+ mouse.Press(Keys.Shift);
+ mouse.Drag(100,100, 200,200);
+ mouse.Release(Keys.Shift);
+ AssertEquals (2, myControl.Properties.SelectedObjects.Count);
+ }
+ }
+
+
+ using (MouseController mouse = new MouseControler(myTestControl))
+ {
+ mouse.Drag(new PointF(0,0), new Point(100, 100));
+ }
+
+
+ using (MouseController mouse = new MouseControler(myTestControl))
+ {
+ mouse.Drag(0,0, 100,100);
+ }
+
+ null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an null
+ If the object is not null then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an NaN value.
+ If the object is not NaN then an