Selftester.requireInBody

Checks that the body of the last message received contains the passed string, and throws if it does not.

struct Selftester
void
requireInBody
(
const string tokenedExpected
,
const string file = __FILE__
,
const size_t line = __LINE__
)

Parameters

tokenedExpected string

The expected string, which may include some replace-tokens.

file string

The file the test is in.

line size_t

The line the test is on.

Throws

Exception if the last message received does not contain the expected string.