public void CommentTextChanged()
        {
            // Select the comment node.
            treeView.SelectedNode = rootCommentTreeNode;

            string newText = "changed text";

            treeViewContainer.TextContent = newText;

            treeViewContainer.CallTextBoxTextChanged();

            Assert.AreEqual(newText, rootCommentTreeNode.XmlComment.InnerText);
            Assert.AreEqual(newText, rootCommentTreeNode.Text, "Tree node text should be updated with new XmlComment's inner text");
        }
예제 #2
0
        public void FireTextBoxTextChangedEventBeforeXmlTreeEditorCreated()
        {
            DerivedXmlTreeViewContainerControl treeViewContainer = new DerivedXmlTreeViewContainerControl();

            treeViewContainer.CallTextBoxTextChanged();
        }