Selftester.require

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

struct Selftester
void
require
(
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 match the expected string.