Exemplo n.º 1
0
        public void StatusBarDropDownButton()
        {
            ToolStripDropDownButtonTester tester = new ToolStripDropDownButtonTester("toolStripDropDownButtonOnStatusStrip");

            tester.Click();
            Assert.AreEqual(label1.Text, "toolStripDropDownButtonOnStatusStrip clicked");
        }
 public void MainToolbar()
 {
     Form form = new ToolStripDropDownButtonTestForm();
       form.Show();
       TextBoxTester textbox = new TextBoxTester("textBox1", form);
       ToolStripDropDownButtonTester tester = new ToolStripDropDownButtonTester("toolStripDropDownButton1", form);
       tester.Click();
       Assert.IsTrue(textbox.Text == "toolStripDropDownButton1 clicked");
 }
 public void ClickDropDownItem()
 {
     Form form = new ToolStripDropDownButtonTestForm();
       form.Show();
       TextBoxTester textbox = new TextBoxTester("textBox1", form);
       ToolStripDropDownButtonTester tester = new ToolStripDropDownButtonTester("toolStripDropDownButton1", form);
       tester.ClickDropDownItem(1);
       Assert.IsTrue(textbox.Text == "twoToolStripMenuItem clicked");
 }
Exemplo n.º 4
0
        public void ClickDropDownItem()
        {
            Form form = new ToolStripDropDownButtonTestForm();

            form.Show();
            TextBoxTester textbox = new TextBoxTester("textBox1", form);
            ToolStripDropDownButtonTester tester = new ToolStripDropDownButtonTester("toolStripDropDownButton1", form);

            tester.ClickDropDownItem(1);
            Assert.IsTrue(textbox.Text == "twoToolStripMenuItem clicked");
        }
Exemplo n.º 5
0
        public void MainToolbar()
        {
            Form form = new ToolStripDropDownButtonTestForm();

            form.Show();
            TextBoxTester textbox = new TextBoxTester("textBox1", form);
            ToolStripDropDownButtonTester tester = new ToolStripDropDownButtonTester("toolStripDropDownButton1", form);

            tester.Click();
            Assert.IsTrue(textbox.Text == "toolStripDropDownButton1 clicked");
        }
 public void StatusBarDropDownButton()
 {
     ToolStripDropDownButtonTester tester =
         new ToolStripDropDownButtonTester("toolStripDropDownButtonOnStatusStrip");
     tester.Click();
     Assert.Equal(label1.Text, "toolStripDropDownButtonOnStatusStrip clicked");
 }