22 #ifndef ROBOTTESTINGFRAMEWORK_ASSERTER_H 23 #define ROBOTTESTINGFRAMEWORK_ASSERTER_H 30 #if defined _MSC_VER && _MSC_VER <= 1800 //Visual Studio 12 or earlier has not [[noreturn]] 31 # define ROBOTTESTINGFRAMEWORK_NORETURN __declspec(noreturn) 33 # define ROBOTTESTINGFRAMEWORK_NORETURN [[noreturn]] 63 static void fail(
bool condition,
79 static void error(
bool condition,
111 static void testFail(
bool condition,
135 static std::string
format(
const char* msg, ...);
140 #endif // ROBOTTESTINGFRAMEWORK_ASSERTER_H
static ROBOTTESTINGFRAMEWORK_NORETURN void error(TestMessage msg)
error Throw an error exception with the given message.
static ROBOTTESTINGFRAMEWORK_NORETURN void fail(TestMessage msg)
fail Throw a failure exception with the given message.
#define ROBOTTESTINGFRAMEWORK_NORETURN
The base class to implememnt a test case.
The Asserter class is used to throw exception or to report messages/failures to a TestResult...
static void testFail(bool condition, TestMessage msg, TestCase *testcase)
Checks the given boolean condition and if it is not hold (it is not true) a failure message will be a...
A formated message with details.
static void report(TestMessage msg, TestSuite *testsuite)
report report a message to the result collector of the given TestSuite
static std::string format(const char *msg,...)
format can be used to format data to in the same way that sprintf formats.
static void testCheck(bool condition, TestMessage msg, TestCase *testcase)
Checks the given boolean condition and if it is not hold (it is not true) a failure message will be a...
The TestSuite holds a group of tests.