public void ToolStripComboBoxEnterAndSelect()
        {
            Form form = new ToolStripComboBoxTestForm();
            form.Show();
            TestWriter writer = new TestWriter(form);

            Assert.Equal("", writer.Test);

            ToolStripComboBoxTester comboBox = new ToolStripComboBoxTester("toolStripComboBox1", form);
            //doing 2 of these tests the collapsing processor.
            comboBox.Select(1);
            comboBox.Enter("abcd");
            comboBox.Enter("abcde");
            comboBox.Select(2);

            Assert.Equal(
                @"[Fact]
            public void Test()
            {

            ToolStripComboBoxTester toolStripComboBox1 = new ToolStripComboBoxTester(""toolStripComboBox1"");

            toolStripComboBox1.Select(1); //two
            toolStripComboBox1.Enter(""abcde"");
            toolStripComboBox1.Select(2); //three

            }",
                writer.Test);
        }
Ejemplo n.º 2
0
        public void ToolStripComboBoxEnterAndSelect()
        {
            Form form = new ToolStripComboBoxTestForm();

            form.Show();
            TestWriter writer = new TestWriter(form);

            Assert.AreEqual("", writer.Test);

            ToolStripComboBoxTester comboBox = new ToolStripComboBoxTester("toolStripComboBox1", form);

            //doing 2 of these tests the collapsing processor.
            comboBox.Select(1);
            comboBox.Enter("abcd");
            comboBox.Enter("abcde");
            comboBox.Select(2);

            Assert.AreEqual(
                @"[Test]
public void Test()
{

	ToolStripComboBoxTester toolStripComboBox1 = new ToolStripComboBoxTester(""toolStripComboBox1"");

	toolStripComboBox1.Select(1); //two
	toolStripComboBox1.Enter(""abcde"");
	toolStripComboBox1.Select(2); //three

}",
                writer.Test);
        }
 public void MainToolbar()
 {
     Form form = new ToolStripComboBoxTestForm();
     form.Show();
     ToolStripComboBoxTester tester = new ToolStripComboBoxTester("toolStripComboBox1", form);
     tester.Select(1);
     Assert.True(new LabelTester("label1", form).Text == "two clicked");
 }
Ejemplo n.º 4
0
        public void MainToolbar()
        {
            Form form = new ToolStripComboBoxTestForm();

            form.Show();
            ToolStripComboBoxTester tester = new ToolStripComboBoxTester("toolStripComboBox1", form);

            tester.Select(1);
            Assert.IsTrue(new LabelTester("label1", form).Text == "two clicked");
        }
Ejemplo n.º 5
0
        public void Test_Common()
        {
            var cbType = new ToolStripComboBoxTester("cbType", fDialog);

            for (int i = 0; i < cbType.Properties.Items.Count; i++)
            {
                cbType.Select(i);

                if (i == 0)
                {
                    //ModalFormHandler = GenerateXLS_Handler;
                    //ClickToolStripButton("tbExcelExport", fDialog);
                }
            }

            KeyDownForm(fDialog.Name, Keys.Escape);
        }