public void AddChildCommentNode()
        {
            treeView.SelectedNode = bodyTreeNode;
            AddChildCommentCommand command = new AddChildCommentCommand();
            command.Owner = treeViewContainer;
            command.Run();

            XmlComment comment = bodyElement.SelectSingleNode("comment()") as XmlComment;
            Assert.IsTrue(bodyElement.HasChildNodes);
            Assert.IsNotNull(comment, "Expected a new comment node to be appended.");

            XmlCommentTreeNode treeNode = bodyTreeNode.Nodes[0] as XmlCommentTreeNode;
            Assert.IsNotNull(treeNode);
        }
 public void AddChildCommentNodeWithNullOwner()
 {
     AddChildCommentCommand command = new AddChildCommentCommand();
     command.Run();
 }