public void ToolStripTextBoxOnToolBar()
        {
            ToolStripButtonTester button_tester = new ToolStripButtonTester("toolStripButton1");

            ToolStripTextBoxTester textbox_tester = new ToolStripTextBoxTester("toolStripTextBox1");
            Assert.True(string.IsNullOrEmpty(textbox_tester.Text));

            button_tester.Click();
            Assert.True(textbox_tester.Text == "clicked");

            textbox_tester.Enter("entered text");
            Assert.True(textbox_tester.Text == "entered text");
        }
示例#2
0
        public void ToolStripTextBoxOnToolBar()
        {
            ToolStripButtonTester button_tester = new ToolStripButtonTester("toolStripButton1");

            ToolStripTextBoxTester textbox_tester = new ToolStripTextBoxTester("toolStripTextBox1");

            Assert.IsTrue(string.IsNullOrEmpty(textbox_tester.Text));

            button_tester.Click();
            Assert.IsTrue(textbox_tester.Text == "clicked");

            textbox_tester.Enter("entered text");
            Assert.IsTrue(textbox_tester.Text == "entered text");
        }