SimpleExpectation
└─WantedTextExpectation
└─UnwantedTextExpectation
public class UnwantedTextExpectation
extends WantedTextExpectation
Constructor Summary | |
---|---|
UnwantedTextExpectation(string substring, string message) Sets the reject pattern |
Method Summary | |
---|---|
boolean | test(string compare) Tests the expectation. |
string | testMessage(string compare) Returns a human readable test message. |
Methods inherited from SimpleTest\WantedTextExpectation | |
---|---|
test, testMessage |
Methods inherited from SimpleTest\SimpleExpectation | |
---|---|
overlayMessage, test, testMessage |
public UnwantedTextExpectation(string substring, string message)
Sets the reject pattern
public boolean test(string compare)
Tests the expectation. False if the substring appears in the text.
public string testMessage(string compare)
Returns a human readable test message.
Fail if a substring is detected within the comparison text.