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