public void DeleteTextNode() { treeView.SelectedNode = textTreeNode; // Sanity check that the html tree node has a text node child. Assert.IsNotNull(htmlTreeNode.XmlElement.SelectSingleNode("text()")); // Call the delete key handler. This is usually called when // the delete key is pressed in the xml tree view control. treeViewContainer.CallXmlElementTreeViewDeleteKeyPressed(); Assert.IsNull(htmlTreeNode.XmlElement.SelectSingleNode("text()")); }