public void AddChildTextNodeWithNullOwner() { AddChildTextNodeCommand command = new AddChildTextNodeCommand(); command.Run(); }
public void AddChildTextNode() { treeView.SelectedNode = bodyTreeNode; AddChildTextNodeCommand command = new AddChildTextNodeCommand(); command.Owner = treeViewContainer; command.Run(); XmlText textNode = bodyElement.SelectSingleNode("text()") as XmlText; Assert.IsNotNull(textNode, "Expected a new text node element to be appended."); XmlTextTreeNode textTreeNode = bodyTreeNode.Nodes[0] as XmlTextTreeNode; Assert.IsNotNull(textTreeNode); }