public void ValidateDontTextFieldValueContains(string expectedValue) { string text = GetValue(); string messageFailed = $"The (Text Field) [ {ControlName} ] contains the value: [ {expectedValue} ], when it should contain different value."; string messagePassed = $"The (Text Field) [ {ControlName} ] does not contain value: [ {text} ]."; ExceptionManager.AssertNotContains(expectedValue, text, messagePassed, messageFailed); }
public void ValidateDontContainsValue(string expectedValue) { var text = WebElement.Text; string messagePassed = $"The (Span) [ {ControlName} ] does not contain the value: [ {expectedValue} ]"; string messageFailed = $"The (Span) [ {ControlName} ] contains the value: [ {text} ], when it should contain a different value: [ {expectedValue} ]"; ExceptionManager.AssertNotContains(expectedValue, text, messagePassed, messageFailed); }