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"); }
public void FireTextBoxTextChangedEventBeforeXmlTreeEditorCreated() { DerivedXmlTreeViewContainerControl treeViewContainer = new DerivedXmlTreeViewContainerControl(); treeViewContainer.CallTextBoxTextChanged(); }