Validate() 공개 메소드

Validates an element.
public Validate ( BaseHtmlElement element ) : bool
element BaseHtmlElement The element.
리턴 bool
예제 #1
0
        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();
        }