public void TestIsControlElementFalse() { using (var e = new MockA11yElement()) { Assert.IsFalse(IsControlElement.Matches(e)); } // using }
public void TestIsControlElementElementTrue() { using (var e = new MockA11yElement()) { e.IsControlElement = true; Assert.IsTrue(IsControlElement.Matches(e)); } // using }
public override bool PassesTest(IA11yElement e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } return(IsControlElement.Matches(e)); }
public override EvaluationCode Evaluate(IA11yElement e) { if (e == null) { throw new ArgumentException(nameof(e)); } return(IsControlElement.Matches(e) ? EvaluationCode.Pass : EvaluationCode.Error); }