コード例 #1
0
 public void AddChildTextNodeWithNullOwner()
 {
     AddChildTextNodeCommand command = new AddChildTextNodeCommand();
     command.Run();
 }
コード例 #2
0
        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);
        }