public void ComboBoxEnterAndSelect() { Form f = new ComboBoxTestForm(); f.Show(); TestWriter writer = new TestWriter(f); Assert.AreEqual("", writer.Test); ComboBoxTester comboBox = new ComboBoxTester("myComboBox"); //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() { ComboBoxTester myComboBox = new ComboBoxTester(""myComboBox""); myComboBox.Select(1); //two myComboBox.Enter(""abcde""); myComboBox.Select(2); //three }", writer.Test); }
public void ComboBoxEnter() { Form f = new ComboBoxTestForm(); f.Show(); TestWriter writer = new TestWriter(f); Assert.Equal("", writer.Test); ComboBoxTester comboBox = new ComboBoxTester("myComboBox"); //doing 2 of these tests the collapsing processor. comboBox.Enter("abc"); comboBox.Enter("abcd"); Assert.Equal( @"[Fact] public void Test() { ComboBoxTester myComboBox = new ComboBoxTester(""myComboBox""); myComboBox.Enter(""abcd""); }", writer.Test); }