public void SearchTreeView_Search_root()
        {
            SearchTreeView searchTreeView = new SearchTreeView(_treeView);

            searchTreeView.Search("root");
            Assert.AreEqual(2, searchTreeView.Nodes.Count);

            TreeNode rootNode = searchTreeView.Nodes[0];

            Assert.AreEqual("Pane: root node", rootNode.Text);
        }
        public void SearchTreeView_Search2()
        {
            SearchTreeView searchTreeView = new SearchTreeView(_treeView);

            searchTreeView.VisibleTreeControl(true);
            searchTreeView.Search("child");

            Assert.AreEqual(1, searchTreeView.Nodes.Count);

            TreeNode rootNode = searchTreeView.Nodes[0];

            Assert.AreEqual("Pane: root node", rootNode.Text);

            Assert.AreEqual(1, rootNode.Nodes.Count);

            TreeNode parentNode = rootNode.Nodes[0];

            Assert.AreEqual(2, parentNode.Nodes.Count);
        }