Esempio n. 1
0
        public void TreeViewAfterSelect()
        {
            TreeViewTestForm form = new TreeViewTestForm();

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

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

            TreeViewTester tree = new TreeViewTester("myTree", form);

            tree.SelectNode(1, 0, 1);

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

	TreeViewTester myTree = new TreeViewTester(""myTree"");

	myTree.SelectNode(1, 0, 1);

}",
                writer.Test);
        }
Esempio n. 2
0
        public void TreeViewAfterSelect()
        {
            TreeViewTestForm form = new TreeViewTestForm();
            form.Show();
            TestWriter writer = new TestWriter(form);
            Assert.AreEqual("", writer.Test);

            TreeViewTester tree = new TreeViewTester("myTree", form);
            tree.SelectNode(1, 0, 1);

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

            TreeViewTester myTree = new TreeViewTester(""myTree"");

            myTree.SelectNode(1, 0, 1);

            }",
                    writer.Test);
        }
Esempio n. 3
0
 public void AfterSelectNode()
 {
     Assert.Equal("Node0", label.Text);
     tree.SelectNode(1);
     Assert.Equal("Node3", label.Text);
 }