public void GivenAttributeInDictionary_ThenContainsAttributeIsTrue() { var target = new HtmlAttributeDictionary { "example" }; target.ContainsAttribute("example").ShouldBeTrue(); }
public void WhenAttributeNameIsEmpty_ThenContainsAttributesThrowsException() { var target = new HtmlAttributeDictionary(); Assert.Throws <ArgumentException>( () => target.ContainsAttribute("") ); }
public void GivenEmptyDictionary_ThenContainsAttributeIsFalse() { var target = new HtmlAttributeDictionary(); target.ContainsAttribute("example").ShouldBeFalse(); }