예제 #1
0
 public void TestIsNotKeyboardFocusableTrue()
 {
     using (var e = new MockA11yElement())
     {
         Assert.IsTrue(IsNotKeyboardFocusable.Matches(e));
     } // using
 }
예제 #2
0
 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);
 }
예제 #4
0
 public override bool PassesTest(IA11yElement e)
 {
     return(IsNotKeyboardFocusable.Matches(e));
 }