22#ifndef ROBOTTESTINGFRAMEWORK_ASSERTER_H
23#define ROBOTTESTINGFRAMEWORK_ASSERTER_H
30#if defined _MSC_VER && _MSC_VER <= 1800
31# define ROBOTTESTINGFRAMEWORK_NORETURN __declspec(noreturn)
33# define ROBOTTESTINGFRAMEWORK_NORETURN [[noreturn]]
63 static void fail(
bool condition,
79 static void error(
bool condition,
135 static std::string
format(
const char* msg, ...);
#define ROBOTTESTINGFRAMEWORK_NORETURN
The Asserter class is used to throw exception or to report messages/failures to a TestResult.
static void fail(bool condition, TestMessage msg)
fail Throw a failure exception if the condition is not hold (it is not true).
static void report(TestMessage msg, TestCase *testcase)
report report a message to the result collector of the given TestCase
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...
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.
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 error(bool condition, TestMessage msg)
error Throw an error exception if the condition is not hold (it is not true).
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...
The base class to implememnt a test case.
A formated message with details.
The TestSuite holds a group of tests.