public void AddAttribute() { treeView.SelectedNode = bodyTreeNode; treeViewContainer.AddAttributeDialogAttributeNamesReturned.Add("class"); AddAttributeCommand command = new AddAttributeCommand(); command.Owner = treeViewContainer; command.Run(); Assert.IsTrue(bodyElement.HasAttribute("class")); }
public void AddAttributeWithNullOwner() { AddAttributeCommand command = new AddAttributeCommand(); command.Run(); }