public void TestIsNotKeyboardFocusableTrue() { using (var e = new MockA11yElement()) { Assert.IsTrue(IsNotKeyboardFocusable.Matches(e)); } // using }
public void TestIsNotKeyboardFocusableFalse() { using (var e = new MockA11yElement()) { e.IsKeyboardFocusable = true; Assert.IsFalse(IsNotKeyboardFocusable.Matches(e)); } // using }
public override EvaluationCode Evaluate(IA11yElement e) { return(IsNotKeyboardFocusable.Matches(e) ? EvaluationCode.Pass : EvaluationCode.Warning); }
public override bool PassesTest(IA11yElement e) { return(IsNotKeyboardFocusable.Matches(e)); }