public void RemoveTextNode() { AddChildTextNode(); treeView.SelectedNode = bodyTreeNode.Nodes[0]; treeViewContainer.Delete(); Assert.IsFalse(bodyElement.HasChildNodes); Assert.AreEqual(0, bodyTreeNode.Nodes.Count); }