Beispiel #1
0
 public void TestIsKeyboardFocusableFalse()
 {
     using (var e = new MockA11yElement())
     {
         Assert.IsFalse(IsKeyboardFocusable.Matches(e));
     } // using
 }
Beispiel #2
0
 public void TestIsKeyboardFocusableTrue()
 {
     using (var e = new MockA11yElement())
     {
         e.IsKeyboardFocusable = true;
         Assert.IsTrue(IsKeyboardFocusable.Matches(e));
     } // using
 }
Beispiel #3
0
        public override EvaluationCode Evaluate(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentException(nameof(e));
            }

            return(IsKeyboardFocusable.Matches(e) ? EvaluationCode.Pass : EvaluationCode.Warning);
        }
Beispiel #4
0
        public override bool PassesTest(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            return(IsKeyboardFocusable.Matches(e));
        }