public void RemoveAttributeWithNullOwner()
 {
     RemoveAttributeCommand command = new RemoveAttributeCommand();
     command.Run();
 }
        public void RemoveAttribute()
        {
            AddAttribute();

            treeView.SelectedNode = bodyTreeNode;
            treeViewContainer.ShowAttributes(treeView.SelectedElement.Attributes);

            Assert.IsNotNull(treeViewContainer.AttributesGrid.SelectedGridItem,
                "Sanity check - should have a grid item selected.");

            RemoveAttributeCommand command = new RemoveAttributeCommand();
            command.Owner = treeViewContainer;
            command.Run();

            Assert.IsFalse(bodyElement.HasAttribute("class"));
        }