Esempio n. 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.IsTrue(textbox.Text == "toolStripDropDownButton1 clicked");
        }
Esempio n. 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.IsTrue(textbox.Text == "twoToolStripMenuItem clicked");
        }