public static void TextNotEquals(this IOperationRunner <IElementWrapper> operationRunner, string text, bool caseSensitive = false, bool trim = true, string failureMessage = null) { var textNotEquals = new TextNotEqualsValidator(text, caseSensitive, trim); operationRunner.Evaluate <UnexpectedElementStateException>(textNotEquals); }
public static void TextNotEquals(IElementWrapper wrapper, string text, bool caseSensitive = false, bool trim = true, string failureMessage = null) { var textNotEquals = new TextNotEqualsValidator(text, caseSensitive, trim); EvaluateValidator <UnexpectedElementStateException, IElementWrapper>(wrapper, textNotEquals); }