Validate() public méthode

Validates an element.
public Validate ( BaseHtmlElement element ) : bool
element BaseHtmlElement The element.
Résultat bool
        public void ValidateInCorrectElement(string tagName)
        {
            var webElement = MockRepository.GenerateStub<IWebElement>();
            webElement.Stub(x => x.TagName).Return(tagName);

            var element = new ElementForTest(webElement);
            var attribute = new NotInputAttribute();
            attribute.Validate(element).Should().BeFalse();
        }