コード例 #1
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.True(textbox.Text == "toolStripDropDownButton1 clicked");
 }
コード例 #2
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.True(textbox.Text == "twoToolStripMenuItem clicked");
 }
コード例 #3
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.True(textbox.Text == "toolStripDropDownButton1 clicked");
        }
コード例 #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.True(textbox.Text == "twoToolStripMenuItem clicked");
        }