public void InsertCommentAfterWithNullOwner()
 {
     InsertCommentAfterCommand command = new InsertCommentAfterCommand();
     command.Run();
 }
        public void InsertCommentAfter()
        {
            treeView.SelectedNode = bodyTreeNode;
            InsertCommentAfterCommand command = new InsertCommentAfterCommand();
            command.Owner = treeViewContainer;
            command.Run();

            XmlComment comment = bodyElement.NextSibling as XmlComment;
            Assert.IsNotNull(comment, "Expected a new comment node to be inserted.");

            XmlCommentTreeNode treeNode = bodyTreeNode.NextNode as XmlCommentTreeNode;
            Assert.IsNotNull(treeNode);
            Assert.AreSame(comment, treeNode.XmlComment);
        }