Пример #1
0
 public void TestIsControlElementExistsFalse()
 {
     using (var e = new MockA11yElement())
     {
         Assert.IsFalse(IsControlElementExists.Matches(e));
     } // using
 }
        public override bool PassesTest(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            return(IsControlElementExists.Matches(e));
        }
        public override EvaluationCode Evaluate(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            return(IsControlElementExists.Matches(e) ? EvaluationCode.Pass : EvaluationCode.Error);
        }