Validate() public method

Validates an element.
public Validate ( BaseHtmlElement element ) : bool
element BaseHtmlElement The element.
return bool
Ejemplo n.º 1
0
 public void ValidateIncorrectElement()
 {
     var attribute = new TagAttribute("div");
     attribute.Validate(this.element).Should().BeFalse();
 }
Ejemplo n.º 2
0
 public void ValidateCorrectElement()
 {
     var attribute = new TagAttribute("button");
     attribute.Validate(this.element).Should().BeTrue();
 }