public void ShouldReturnWrappedAttributeNodeIfItExists()
        {
            AttributeNode attributeNode = SparkTestNodes.BasicAttributeNode("thisAttribute");
            ElementNode   node          = SparkTestNodes.BasicElementNode().WithAttribute(attributeNode);

            GivenAnOriginalElement(node);
            WhenAttributeIsRetreived("thisAttribute");
            ThenRetrievedAttributeShouldWrap(attributeNode);
        }
 public void GetAttributeShouldReturnEmptyAttributreNodeIfTheAttributeDoesntExist()
 {
     GivenAnOriginalElement(SparkTestNodes.BasicElementNode());
     WhenAttributeIsRetreived("thisAttribute");
     ThenGetAttributeResultShouldBeEmpty();
 }
 public void ShouldReturnTrueForHasAttributeIfUnderlyingNodeHasAttributeWithDifferentCase()
 {
     GivenAnOriginalElement(SparkTestNodes.BasicElementNode());
     WhenAnAttributeIsAdded("theATTriBUTE");
     ThenHasAttributeShouldBeTrueFor("theAttribute");
 }
 public void ShouldReturnFalseForHasAttributeIfUnderlyingNodeDoesntHaveAttribute()
 {
     GivenAnOriginalElement(SparkTestNodes.BasicElementNode());
     ThenHasAttributeShouldBeFalseFor("theAttribute");
 }
 public void ShouldReturnWrappedAttributeNodeWhenAttributeIsAdded()
 {
     GivenAnOriginalElement(SparkTestNodes.BasicElementNode());
     WhenAnAttributeIsAdded("theAttribute");
     ThenTheReturnedAttributeShouldBeWrappedSparkAttributeNamed("theAttribute");
 }
 public void ShouldAddAnAttributeToOriginalNodeOnAddAttribute()
 {
     GivenAnOriginalElement(SparkTestNodes.BasicElementNode());
     WhenAnAttributeIsAdded("theAttribute");
     ThenTheWrappedElementShouldHaveABlankAttributeNamed("theAttribute");
 }