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"); }