Inheritance: System.Attribute, IElementValidator
Beispiel #1
0
 public void ValidateIncorrectElement()
 {
     var attribute = new TagAttribute("div");
     attribute.Validate(this.element).Should().BeFalse();
 }
Beispiel #2
0
 public void GetErrorMessage()
 {
     var attribute = new TagAttribute("p");
     attribute.GetErrorMessage(this.element).Should().Be("'button' tag does not match to 'p' tag");
 }
Beispiel #3
0
 public void ValidateCorrectElement()
 {
     var attribute = new TagAttribute("button");
     attribute.Validate(this.element).Should().BeTrue();
 }