public static void Attribute(this IOperationRunner <IElementWrapper> operationRunner, string attributeName, string[] allowedValues, bool caseSensitive = false, bool trimValue = true, string failureMessage = null)
        {
            var checkAttribute = new ValidatorAttributeValidator(attributeName, allowedValues, caseSensitive, trimValue, failureMessage);

            operationRunner.Evaluate <UnexpectedElementStateException>(checkAttribute);
        }
Exemple #2
0
        public static void Attribute(IElementWrapper wrapper, string attributeName, string[] allowedValues, bool caseSensitive = false, bool trimValue = true, string failureMessage = null)
        {
            var checkAttribute = new ValidatorAttributeValidator(attributeName, allowedValues, caseSensitive, trimValue, failureMessage);

            EvaluateValidator <UnexpectedElementStateException, IElementWrapper>(wrapper, checkAttribute);
        }