public void ValidateIncorrectElement() { var attribute = new TagAttribute("div"); attribute.Validate(this.element).Should().BeFalse(); }
public void GetErrorMessage() { var attribute = new TagAttribute("p"); attribute.GetErrorMessage(this.element).Should().Be("'button' tag does not match to 'p' tag"); }
public void ValidateCorrectElement() { var attribute = new TagAttribute("button"); attribute.Validate(this.element).Should().BeTrue(); }