27 template<
typename TExpected,
typename TActual>
40 template<
typename TExpected,
typename TActual>
53 template<
typename TExpected,
typename TActual>
54 static void are_equal(
const TExpected& expected,
const TActual& actual,
const std::string& message) {
are_equal(expected, actual, message,
line_info());}
67 template<
typename TExpected,
typename TActual>
85 static void are_equal(
const char16_t* expected,
const char16_t* actual,
const std::string& message,
const tunit::line_info& line_info) {
93 static void are_equal(
const char32_t* expected,
const char32_t* actual,
const std::string& message,
const tunit::line_info& line_info) {
101 static void are_equal(
const wchar_t* expected,
const wchar_t* actual,
const std::string& message,
const tunit::line_info& line_info) {
125 static void are_equal(
long double expected,
long double actual,
const std::string& message,
const tunit::line_info& line_info) {
173 static void are_equal(
float expected,
float& actual,
float tolerance,
const std::string& message) {
are_equal(expected, actual, tolerance, message, line_info());}
235 static void are_equal(
double expected,
double actual,
double tolerance,
const std::string& message) {
are_equal(expected, actual, tolerance, message, line_info());}
250 static void are_equal(
double expected,
double actual,
double tolerance,
const std::string& message,
const tunit::line_info& line_info) {
297 static void are_equal(
long double expected,
long double actual,
long double tolerance,
const std::string& message) {
are_equal(expected, actual, tolerance, message, line_info());}
312 static void are_equal(
long double expected,
long double actual,
long double tolerance,
const std::string& message,
const tunit::line_info& line_info) {
329 template<
typename TExpected,
typename TActual>
342 template<
typename TExpected,
typename TActual>
355 template<
typename TExpected,
typename TActual>
356 static void are_not_equal(
const TExpected& expected,
const TActual& actual,
const std::string& message) {
are_not_equal(expected, actual, message, line_info());}
369 template<
typename TExpected,
typename TActual>
424 template<
typename TExpected,
typename TActual>
440 template<
typename TExpected,
typename TActual>
456 template<
typename TExpected,
typename TActual>
457 static void are_not_same(
const TExpected& expected,
const TActual& actual,
const std::string& message) {
are_not_same(expected, actual, message, line_info());}
473 template<
typename TExpected,
typename TActual>
494 template<
typename TExpected,
typename TActual>
495 static void are_same(
const TExpected& expected,
const TActual& actual) {
are_same(expected, actual,
"", line_info());}
510 template<
typename TExpected,
typename TActual>
526 template<
typename TExpected,
typename TActual>
527 static void are_same(
const TExpected& expected,
const TActual& actual,
const std::string& message) {
are_same(expected, actual, message, line_info());}
543 template<
typename TExpected,
typename TActual>
544 static void are_same(
const TExpected& expected,
const TActual& actual,
const std::string& message,
const tunit::line_info& line_info) {
562 template<
typename TItem,
typename TCollection>
563 static void contains(
const TItem& item,
const TCollection& collection) {
contains(item, collection,
"", line_info());}
576 template<
typename TItem,
typename TCollection>
590 template<
typename TItem,
typename TCollection>
591 static void contains(
const TItem& item,
const TCollection& collection,
const std::string& message) {
contains(item, collection, message, line_info());}
605 template<
typename TItem,
typename TCollection>
606 static void contains(
const TItem& item,
const TCollection& collection,
const std::string& message,
const tunit::line_info& line_info) {
615 template<
typename TItem,
typename TValue>
616 static void contains(
const TItem& item,
const std::initializer_list<TValue>& values) {
contains(item, values,
"", line_info());}
617 template<
typename TItem,
typename TValue>
618 static void contains(
const TItem& item,
const std::initializer_list<TValue>& values,
const tunit::line_info& line_info) {
contains(item, values,
"", line_info);}
619 template<
typename TItem,
typename TValue>
620 static void contains(
const TItem& item,
const std::initializer_list<TValue>& values,
const std::string& message) {
contains(item, values, message, line_info());}
621 template<
typename TItem,
typename TValue>
622 static void contains(
const TItem& item,
const std::initializer_list<TValue>& values,
const std::string& message,
const tunit::line_info& line_info) {
630 static void contains(
char item,
const char* values,
const std::string& message,
const tunit::line_info& line_info) {
638 static void contains(char16_t item,
const char16_t* values,
const std::string& message,
const tunit::line_info& line_info) {
646 static void contains(char32_t item,
const char32_t* values,
const std::string& message,
const tunit::line_info& line_info) {
654 static void contains(
wchar_t item,
const wchar_t* values,
const std::string& message,
const tunit::line_info& line_info) {
727 template<
typename TValue>
741 template<
typename TValue>
755 template<
typename TValue>
756 static void is_empty(
const TValue& value,
const std::string& message) {
is_empty(value, message, line_info());}
770 template<
typename TValue>
780 template<
typename TValue>
781 static void is_empty(
const std::initializer_list<TValue>& value) {
is_empty(value,
"", line_info());}
782 template<
typename TValue>
784 template<
typename TValue>
785 static void is_empty(
const std::initializer_list<TValue>& value,
const std::string& message) {
is_empty(value, message, line_info());}
786 template<
typename TValue>
787 static void is_empty(
const std::initializer_list<TValue>& values,
const std::string& message,
const tunit::line_info& line_info) {
838 static void is_false(
bool condition) {is_false(condition,
"", line_info());}
851 static void is_false(
bool condition,
const tunit::line_info& line_info) {is_false(condition,
"", line_info);}
864 static void is_false(
bool condition,
const std::string& message) {is_false(condition, message, line_info());}
878 static void is_false(
bool condition,
const std::string& message,
const tunit::line_info& line_info) {
895 template<
typename TValue1,
typename TValue2>
896 static void is_greater(
const TValue1& val1,
const TValue2& val2) {is_greater(val1, val2,
"", line_info());}
908 template<
typename TValue1,
typename TValue2>
909 static void is_greater(
const TValue1& val1,
const TValue2& val2,
const tunit::line_info& line_info) {is_greater(val1, val2,
"", line_info);}
921 template<
typename TValue1,
typename TValue2>
922 static void is_greater(
const TValue1& val1,
const TValue2& val2,
const std::string& message) {is_greater(val1, val2, message, line_info());}
935 template<
typename TValue1,
typename TValue2>
936 static void is_greater(
const TValue1& val1,
const TValue2& val2,
const std::string& message,
const tunit::line_info& line_info) {
945 static void is_greater(
const char* val1,
const char* val2,
const std::string& message,
const tunit::line_info& line_info) {
953 static void is_greater(
const char16_t* val1,
const char16_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
961 static void is_greater(
const char32_t* val1,
const char32_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
969 static void is_greater(
const wchar_t* val1,
const wchar_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
988 template<
typename TValue1,
typename TValue2>
1002 template<
typename TValue1,
typename TValue2>
1016 template<
typename TValue1,
typename TValue2>
1031 template<
typename TValue1,
typename TValue2>
1083 template<
typename Type,
typename TValue>
1084 static void is_instance_of(
const TValue& value) {is_instance_of<Type>(value,
"", line_info());}
1096 template<
typename Type,
typename TValue>
1109 template<
typename Type,
typename TValue>
1110 static void is_instance_of(
const TValue& value,
const std::string& message) {is_instance_of<Type>(value, message, line_info());}
1123 template<
typename Type,
typename TValue>
1126 assert::is_instance_of<Type>(value, message, line_info);
1141 template<
typename TValue1,
typename TValue2>
1142 static void is_less(
const TValue1& val1,
const TValue2& val2) {
is_less(val1, val2,
"", line_info());}
1154 template<
typename TValue1,
typename TValue2>
1167 template<
typename TValue1,
typename TValue2>
1168 static void is_less(
const TValue1& val1,
const TValue2& val2,
const std::string& message) {
is_less(val1, val2, message, line_info());}
1181 template<
typename TValue1,
typename TValue2>
1191 static void is_less(
const char* val1,
const char* val2,
const std::string& message,
const tunit::line_info& line_info) {
1199 static void is_less(
const char16_t* val1,
const char16_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
1207 static void is_less(
const char32_t* val1,
const char32_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
1215 static void is_less(
const wchar_t* val1,
const wchar_t* val2,
const std::string& message,
const tunit::line_info& line_info) {
1234 template<
typename TValue1,
typename TValue2>
1248 template<
typename TValue1,
typename TValue2>
1262 template<
typename TValue1,
typename TValue2>
1277 template<
typename TValue1,
typename TValue2>
1356 static void is_NaN(
double value,
const std::string& message) {
is_NaN(value, message, line_info());}
1414 static void is_NaN(
long double value,
const std::string& message) {
is_NaN(value, message, line_info());}
1472 static void is_NaN(
float value,
const std::string& message) {
is_NaN(value, message, line_info());}
1504 template<
typename TValue>
1518 template<
typename TValue>
1532 template<
typename TValue>
1547 template<
typename TValue>
1566 template<
typename TValue>
1580 template<
typename TValue>
1594 template<
typename TValue>
1609 template<
typename TValue>
1619 template<
typename TValue>
1621 template<
typename TValue>
1623 template<
typename TValue>
1624 static void is_not_empty(
const std::initializer_list<TValue>& value,
const std::string& message) {
is_not_empty(value, message, line_info());}
1625 template<
typename TValue>
1676 template<
typename Type,
typename TValue>
1689 template<
typename Type,
typename TValue>
1702 template<
typename Type,
typename TValue>
1703 static void is_not_instance_of(
const TValue& value,
const std::string& message) {is_not_instance_of<Type>(value, message, line_info());}
1716 template<
typename Type,
typename TValue>
1719 assert::is_not_instance_of<Type>(value, message, line_info);
1736 template<
typename TPo
inter>
1751 template<
typename TPo
inter>
1766 template<
typename TPo
inter>
1782 template<
typename TPo
inter>
1801 template<
typename TPo
inter>
1815 template<
typename TPo
inter>
1829 template<
typename TPo
inter>
1830 static void is_not_null(
const std::unique_ptr<TPointer>& pointer,
const std::string& message) {
is_not_null(pointer, message, line_info());}
1844 template<
typename TPo
inter>
1863 template<
typename TPo
inter>
1877 template<
typename TPo
inter>
1891 template<
typename TPo
inter>
1892 static void is_not_null(
const std::shared_ptr<TPointer>& pointer,
const std::string& message) {
is_not_null(pointer, message, line_info());}
1906 template<
typename TPo
inter>
1927 template<
typename TPo
inter>
1943 template<
typename TPo
inter>
1959 template<
typename TPo
inter>
1960 static void is_not_null(
const std::weak_ptr<TPointer>& pointer,
const std::string& message) {
is_not_null(pointer, message, line_info());}
1976 template<
typename TPo
inter>
2039 template<
typename TValue>
2053 template<
typename TValue>
2067 template<
typename TValue>
2082 template<
typename TValue>
2102 template<
typename TPo
inter>
2117 template<
typename TPo
inter>
2132 template<
typename TPo
inter>
2133 static void is_null(
const TPointer* pointer,
const std::string& message) {
is_null(pointer, message, line_info());}
2148 template<
typename TPo
inter>
2167 template<
typename TPo
inter>
2168 static void is_null(
const std::unique_ptr<TPointer>& pointer) {
is_null(pointer,
"", line_info());}
2181 template<
typename TPo
inter>
2195 template<
typename TPo
inter>
2196 static void is_null(
const std::unique_ptr<TPointer>& pointer,
const std::string& message) {
is_null(pointer, message, line_info());}
2210 template<
typename TPo
inter>
2229 template<
typename TPo
inter>
2230 static void is_null(
const std::shared_ptr<TPointer>& pointer) {
is_null(pointer,
"", line_info());}
2243 template<
typename TPo
inter>
2257 template<
typename TPo
inter>
2258 static void is_null(
const std::shared_ptr<TPointer>& pointer,
const std::string& message) {
is_null(pointer, message, line_info());}
2272 template<
typename TPo
inter>
2293 template<
typename TPo
inter>
2294 static void is_null(
const std::weak_ptr<TPointer>& pointer) {
is_null(pointer,
"", line_info());}
2309 template<
typename TPo
inter>
2325 template<
typename TPo
inter>
2326 static void is_null(
const std::weak_ptr<TPointer>& pointer,
const std::string& message) {
is_null(pointer, message, line_info());}
2342 template<
typename TPo
inter>
2381 static void is_null(std::nullptr_t pointer,
const std::string& message) {
is_null(pointer, message, line_info());}
2405 template<
typename TValue>
2419 template<
typename TValue>
2433 template<
typename TValue>
2448 template<
typename TValue>
2493 static void is_true(
bool condition,
const std::string& message) {
is_true(condition, message, line_info());}
2525 template<
typename TValue>
2539 template<
typename TValue>
2553 template<
typename TValue>
2554 static void is_zero(
const TValue& value,
const std::string& message) {
is_zero(value, message, line_info());}
2568 template<
typename TValue>
2587 template<
typename TException>
2588 static void throws(
const std::function<
void()>& statement) {throws<TException>(statement,
"", line_info());}
2601 template<
typename TException>
2602 static void throws(
const std::function<
void()>& statement,
const tunit::line_info& line_info) {throws<TException>(statement,
"", line_info);}
2615 template<
typename TException>
2616 static void throws(
const std::function<
void()>& statement,
const std::string& message) {throws<TException>(statement, message, line_info());}
2630 template<
typename TException>
2631 static void throws(
const std::function<
void()>& statement,
const std::string& message,
const tunit::line_info& line_info) {
2633 assert::throws<TException>(statement, message, line_info);
2672 static void throws_any(
const std::function<
void()>& statement,
const std::string& message) {
throws_any(statement, message, line_info());}
static void is_not_null(const std::unique_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1845
static void does_not_throw(const std::function< void()> &statement, const std::string &message, const tunit::line_info &line_info)
Assumes that the staement does not throw an exception.
Definition: assume.h:709
static void are_equal(const TExpected &expected, const TActual &actual, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:41
static void does_not_throw(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
Definition: assume.h:672
static void is_empty(const TValue &value, const std::string &message)
Assumes that collection contains an item.
Definition: assume.h:756
static void is_instance_of(const TValue &value)
Assumes that an object is of the type supplied or a derived type.
Definition: assume.h:1084
static void is_zero(const TValue &value, const tunit::line_info &line_info)
Assumes that ta condition is zero.
Definition: assume.h:2540
static void is_negative(const TValue &value, const tunit::line_info &line_info)
Assumes that ta condition is negative.
Definition: assume.h:1519
static void are_same(const TExpected &expected, const TActual &actual, const std::string &message, const tunit::line_info &line_info)
Assumes that two objects do refer to differents objects.
Definition: assume.h:544
static void is_instance_of(const TValue &value, const tunit::line_info &line_info)
Assumes that an object is of the type supplied or a derived type.
Definition: assume.h:1097
static void is_NaN(double value, const std::string &message, const tunit::line_info &line_info)
Assumes that a value is NaN.
Definition: assume.h:1370
static void is_not_null(const std::unique_ptr< TPointer > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1802
static void are_not_same(const TExpected &expected, const TActual &actual, const tunit::line_info &line_info)
Assumes that two objects do refer to differents objects.
Definition: assume.h:441
static void is_not_empty(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that collection does not contain any item.
Definition: assume.h:1610
static void are_not_same(const TExpected &expected, const TActual &actual, const std::string &message, const tunit::line_info &line_info)
Assumes that two objects do refer to differents objects.
Definition: assume.h:474
static void is_null(const std::shared_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2273
static void is_not_zero(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that ta condition is not zero.
Definition: assume.h:2083
static void is_NaN(long double value, const tunit::line_info &line_info)
that a value is NaN.
Definition: assume.h:1401
static void contains(const TItem &item, const TCollection &collection, const std::string &message)
Assumes that collection contains an item.
Definition: assume.h:591
static void is_false(bool condition)
Asserts that ta condition is false.
Definition: assert.h:845
static void does_not_throw(const std::function< void()> &statement, const tunit::line_info &line_info)
Assumes that the staement does not throw an exception.
Definition: assume.h:684
static void is_not_null(const std::shared_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1878
static void is_true(bool condition)
Asserts that ta condition is true.
Definition: assert.h:2414
static void throws_any(const std::function< void()> &statement)
Asserts that the staement does not throw an exception.
Definition: assert.h:2600
static void contains(const TItem &item, const TCollection &collection, const tunit::line_info &line_info)
Assumes that collection contains an item.
Definition: assume.h:577
static void is_less(const TValue1 &val1, const TValue2 &val2)
Asserts that the first value is is_less than the second value.
Definition: assert.h:1137
static void is_not_null(const std::weak_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is not null.
Definition: assume.h:1960
static void is_less_or_equal(const TValue1 &val1, const TValue2 &val2, const tunit::line_info &line_info)
Assumes that the first value is is_less than or equal to the second value.
Definition: assume.h:1249
static void is_negative(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that ta condition is negative.
Definition: assume.h:1548
static void is_not_empty(const TValue &value, const tunit::line_info &line_info)
Assumes that collection does not contain any item.
Definition: assume.h:1581
static void is_not_null(std::nullptr_t pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:2021
static void is_true(bool condition, const std::string &message)
Assumes that a condition is true.
Definition: assume.h:2493
static void are_equal(double expected, double actual, double tolerance, const std::string &message)
Assumes that two type are equal.
Definition: assume.h:235
static void are_equal(double expected, double actual, double tolerance, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:221
static void is_null(const std::unique_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2182
static void is_not_empty(const TValue &value)
Asserts that collection oes not contain any item.
Definition: assert.h:1549
static void is_NaN(long double value)
that a value is NaN.
Definition: assume.h:1388
static void are_equal(const TExpected &expected, const TActual &actual, const std::string &message, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:68
static void does_not_throw(const std::function< void()> &statement, const std::string &message)
Assumes that the staement does not throw an exception.
Definition: assume.h:696
static void is_null(const std::unique_ptr< TPointer > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2168
static void is_not_zero(const TValue &value)
Assumes that ta condition is not zero.
Definition: assume.h:2040
static void is_null(const std::shared_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2244
static void is_not_instance_of(const TValue &value)
Assumes that an object is not of the type supplied or a derived type.
Definition: assume.h:1677
static void is_less(const TValue1 &val1, const TValue2 &val2, const std::string &message, const tunit::line_info &line_info)
Assumes that the first value is is_less than the second value.
Definition: assume.h:1182
static void is_null(std::nullptr_t pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2393
static void is_null(const TPointer *pointer, const std::string &message)
Assumes that the pointer is null.
Definition: assume.h:2133
static void is_not_null(const TPointer *pointer, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1752
static void are_equal(const TExpected &expected, const TActual &actual, const std::string &message)
Assumes that two type are equal.
Definition: assume.h:54
static void is_not_instance_of(const TValue &value, const tunit::line_info &line_info)
Assumes that an object is not of the type supplied or a derived type.
Definition: assume.h:1690
static void is_null(const TPointer *pointer)
Assumes that the pointer is null.
Definition: assume.h:2103
static void is_not_instance_of(const TValue &value, const std::string &message)
Assumes that an object is not of the type supplied or a derived type.
Definition: assume.h:1703
static void is_NaN(float value, const tunit::line_info &line_info)
that a value is NaN.
Definition: assume.h:1459
static void contains(const TItem &item, const TCollection &collection, const std::string &message, const tunit::line_info &line_info)
Assumes that collection contains an item.
Definition: assume.h:606
static void is_zero(const TValue &value)
Asserts that ta condition is zero.
Definition: assert.h:2472
static void is_less(const TValue1 &val1, const TValue2 &val2, const tunit::line_info &line_info)
Assumes that the first value is is_less than the second value.
Definition: assume.h:1155
static void is_true(bool condition, const tunit::line_info &line_info)
Assumes that a condition is true.
Definition: assume.h:2480
static void is_null(const std::unique_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is null.
Definition: assume.h:2196
static void is_negative(const TValue &value, const std::string &message)
Assumes that ta condition is negative.
Definition: assume.h:1533
static void are_equal(float expected, float actual, float tolerance, const std::string &message, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:188
static void are_not_equal(const TExpected &expected, const TActual &actual, const std::string &message, const tunit::line_info &line_info)
Assumes that two type are not equal.
Definition: assume.h:370
static void are_not_equal(const TExpected &expected, const TActual &actual)
Asserts that two type are not equal.
Definition: assert.h:339
static void are_same(const TExpected &expected, const TActual &actual, const std::string &message)
Assumes that two objects do refer to differents objects.
Definition: assume.h:527
static void contains(const TItem &item, const TCollection &collection)
Asserts that collection contains an item.
Definition: assert.h:565
static void is_not_null(const std::shared_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1907
static void is_less(const TValue1 &val1, const TValue2 &val2, const std::string &message)
Assumes that the first value is is_less than the second value.
Definition: assume.h:1168
static void are_equal(float expected, float actual, float tolerance)
Assumes that two type are equal.
Definition: assume.h:145
#define line_info_
Get tunit::line_info informations.
Definition: line_info.h:75
static void is_not_null(std::nullptr_t pointer, const std::string &message)
Assumes that the pointer is not null.
Definition: assume.h:2009
static void is_null(const std::weak_ptr< TPointer > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2294
static void throws_any(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
Definition: assume.h:2648
static void is_empty(const TValue &value, const tunit::line_info &line_info)
Assumes that collection contains an item.
Definition: assume.h:742
Contains tunit::assert class.
static void are_not_same(const TExpected &expected, const TActual &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:429
static void is_not_null(const std::unique_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is not null.
Definition: assume.h:1830
static void are_equal(float expected, float &actual, float tolerance, const std::string &message)
Assumes that two type are equal.
Definition: assume.h:173
static void are_same(const TExpected &expected, const TActual &actual)
Assumes that two objects do refer to differents objects.
Definition: assume.h:495
static void does_not_throw(const std::function< void()> &statement)
Asserts that the staement does not throw an exception.
Definition: assert.h:678
static void is_greater_or_equal(const TValue1 &val1, const TValue2 &val2)
Asserts that the first value is greater than or equal to the second value.
Definition: assert.h:990
static void is_positive(const TValue &value)
Asserts that ta condition is positive.
Definition: assert.h:2354
static void is_not_instance_of(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that an object is not of the type supplied or a derived type.
Definition: assume.h:1717
static void is_NaN(double value, const std::string &message)
Assumes that a value is NaN.
Definition: assume.h:1356
static void is_not_null(const std::weak_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1977
static void abort()
Abort current test.
Definition: base_assert.h:26
static void is_zero(const TValue &value)
Assumes that ta condition is zero.
Definition: assume.h:2526
static void is_NaN(float value)
that a value is NaN.
Definition: assume.h:1446
static void is_null(std::nullptr_t pointer, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2370
static void is_not_null(const std::weak_ptr< TPointer > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1928
static void is_negative(const TValue &value)
Asserts that ta condition is negative.
Definition: assert.h:1488
line_info information class is used to store current file, current line and current function informat...
Definition: line_info.h:13
static void is_less_or_equal(const TValue1 &val1, const TValue2 &val2)
Asserts that the first value is is_less than or equal to the second value.
Definition: assert.h:1226
static void are_equal(const TExpected &expected, const TActual &actual)
Assumes that two type are equal.
Definition: assume.h:28
static void is_null(const std::weak_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2343
static void is_zero(const TValue &value, const std::string &message)
Assumes that ta condition is zero.
Definition: assume.h:2554
static void is_not_zero(const TValue &value, const tunit::line_info &line_info)
Assumes that ta condition is not zero.
Definition: assume.h:2054
static void is_less_or_equal(const TValue1 &val1, const TValue2 &val2, const std::string &message)
Assumes that the first value is is_less than or equal to the second value.
Definition: assume.h:1263
static void is_positive(const TValue &value)
Assumes that ta condition is positive.
Definition: assume.h:2406
static void are_equal(const TExpected &expected, const TActual &actual)
Asserts that two type are equal.
Definition: assert.h:42
static void is_less_or_equal(const TValue1 &val1, const TValue2 &val2, const std::string &message, const tunit::line_info &line_info)
Assumes that the first value is is_less than or equal to the second value.
Definition: assume.h:1278
static void are_equal(long double expected, long double actual, long double tolerance, const std::string &message, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:312
static void is_null(const std::unique_ptr< TPointer > &pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2211
static void is_negative(const TValue &value)
Assumes that ta condition is negative.
Definition: assume.h:1505
static void are_not_same(const TExpected &expected, const TActual &actual)
Assumes that two objects do refer to differents objects.
Definition: assume.h:425
static void is_instance_of(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that an object is of the type supplied or a derived type.
Definition: assume.h:1124
static void is_empty(const TValue &value)
Assumes that collection contains an item.
Definition: assume.h:728
static void is_greater_or_equal(const TValue1 &val1, const TValue2 &val2, const std::string &message)
Assumes that the first value is greater than or equal to the second value.
Definition: assume.h:1017
static void is_true(bool condition)
Assumes that ta condition is true.
Definition: assume.h:2467
static void is_null(const TPointer *pointer)
Asserts that the pointer is null.
Definition: assert.h:2064
static void are_same(const TExpected &expected, const TActual &actual, const tunit::line_info &line_info)
Assumes that two objects do refer to differents objects.
Definition: assume.h:511
static void is_empty(const TValue &value)
Asserts that collection contains an item.
Definition: assert.h:737
static void are_equal(double expected, double actual, double tolerance, const std::string &message, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:250
static void are_not_equal(const TExpected &expected, const TActual &actual)
Assumes that two type are not equal.
Definition: assume.h:330
The assert class contains a collection of static methods that implement the most common assertions us...
Definition: assume.h:12
Definition: base_assert.h:15
static void are_equal(long double expected, long double actual, long double tolerance, const std::string &message)
Assumes that two type are equal.
Definition: assume.h:297
static void succeed()
Generates a success with a generic message.
Definition: base_assert.h:130
static void is_not_null(const std::shared_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is not null.
Definition: assume.h:1892
static void is_not_null(const TPointer *pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1783
static void is_NaN(double value)
that a value is NaN.
Definition: assert.h:1316
static void is_greater_or_equal(const TValue1 &val1, const TValue2 &val2, const tunit::line_info &line_info)
Assumes that the first value is greater than or equal to the second value.
Definition: assume.h:1003
static void is_null(const std::weak_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is null.
Definition: assume.h:2326
static void is_positive(const TValue &value, const std::string &message)
Assumes that ta condition is positive.
Definition: assume.h:2434
The tunit namespace contains a unit test library.
Definition: abort_error.h:8
static void is_null(std::nullptr_t pointer, const std::string &message)
Assumes that the pointer is null.
Definition: assume.h:2381
static void is_greater_or_equal(const TValue1 &val1, const TValue2 &val2)
Assumes that the first value is greater than or equal to the second value.
Definition: assume.h:989
static void is_null(std::nullptr_t pointer)
Assumes that the pointer is null.
Definition: assume.h:2359
static void is_null(const std::weak_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2310
static void is_null(const std::shared_ptr< TPointer > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2230
static void is_zero(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that ta condition is zero.
Definition: assume.h:2569
static void is_NaN(double value, const tunit::line_info &line_info)
that a value is NaN.
Definition: assume.h:1343
static void is_greater_or_equal(const TValue1 &val1, const TValue2 &val2, const std::string &message, const tunit::line_info &line_info)
Assumes that the first value is greater than or equal to the second value.
Definition: assume.h:1032
static void is_instance_of(const TValue &value, const std::string &message)
Assumes that an object is of the type supplied or a derived type.
Definition: assume.h:1110
static void is_not_zero(const TValue &value, const std::string &message)
Assumes that ta condition is not zero.
Definition: assume.h:2068
static void is_null(const TPointer *pointer, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2118
static void is_null(const TPointer *pointer, const std::string &message, const tunit::line_info &line_info)
Assumes that the pointer is null.
Definition: assume.h:2149
static void is_NaN(float value, const std::string &message)
Assumes that a value is NaN.
Definition: assume.h:1472
static void is_not_null(const std::shared_ptr< TPointer > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1864
static void is_NaN(float value, const std::string &message, const tunit::line_info &line_info)
Assumes that a value is NaN.
Definition: assume.h:1486
static void are_not_equal(const TExpected &expected, const TActual &actual, const std::string &message)
Assumes that two type are not equal.
Definition: assume.h:356
static void is_greater(const TValue1 &val1, const TValue2 &val2)
Asserts that the first value is greater than the second value.
Definition: assert.h:902
static void is_NaN(long double value, const std::string &message, const tunit::line_info &line_info)
Assumes that a value is NaN.
Definition: assume.h:1428
static void is_NaN(long double value, const std::string &message)
Assumes that a value is NaN.
Definition: assume.h:1414
static void is_NaN(double value)
that a value is NaN.
Definition: assume.h:1330
static void is_not_null(const std::unique_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1816
static void is_not_null(std::nullptr_t pointer)
Assumes that the pointer is not null.
Definition: assume.h:1987
static void is_not_empty(const TValue &value, const std::string &message)
Assumes that collection does not contain any item.
Definition: assume.h:1595
static void is_null(const std::shared_ptr< TPointer > &pointer, const std::string &message)
Assumes that the pointer is null.
Definition: assume.h:2258
static void contains(const TItem &item, const TCollection &collection)
Assumes that collection contains an item.
Definition: assume.h:563
static void throws_any(const std::function< void()> &statement, const tunit::line_info &line_info)
Assumes that the staement does not throw an exception.
Definition: assume.h:2660
static void is_positive(const TValue &value, const tunit::line_info &line_info)
Assumes that ta condition is positive.
Definition: assume.h:2420
static void are_equal(long double expected, long double actual, long double tolerance, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:283
static void is_positive(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that ta condition is positive.
Definition: assume.h:2449
static void is_not_null(const TPointer *pointer, const std::string &message)
Assumes that the pointer is not null.
Definition: assume.h:1767
static void is_not_empty(const TValue &value)
Assumes that collection oes not contain any item.
Definition: assume.h:1567
static void are_not_equal(const TExpected &expected, const TActual &actual, const tunit::line_info &line_info)
Assumes that two type are not equal.
Definition: assume.h:343
static void are_equal(double expected, double actual, double tolerance)
Assumes that two type are equal.
Definition: assume.h:207
static void throws_any(const std::function< void()> &statement, const std::string &message, const tunit::line_info &line_info)
Assumes that the staement does not throw an exception.
Definition: assume.h:2685
static void are_same(const TExpected &expected, const TActual &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:498
static void is_less(const TValue1 &val1, const TValue2 &val2)
Assumes that the first value is is_less than the second value.
Definition: assume.h:1142
static void throws_any(const std::function< void()> &statement, const std::string &message)
Assumes that the staement does not throw an exception.
Definition: assume.h:2672
static void is_not_null(std::nullptr_t pointer, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1998
static void is_less_or_equal(const TValue1 &val1, const TValue2 &val2)
Assumes that the first value is is_less than or equal to the second value.
Definition: assume.h:1235
static void is_true(bool condition, const std::string &message, const tunit::line_info &line_info)
Assumes that a condition is true.
Definition: assume.h:2507
static void are_not_same(const TExpected &expected, const TActual &actual, const std::string &message)
Assumes that two objects do refer to differents objects.
Definition: assume.h:457
static void is_empty(const TValue &value, const std::string &message, const tunit::line_info &line_info)
Assumes that collection contains an item.
Definition: assume.h:771
static void is_not_null(const std::weak_ptr< TPointer > &pointer, const tunit::line_info &line_info)
Assumes that the pointer is not null.
Definition: assume.h:1944
static void is_not_null(const TPointer *pointer)
Assumes that the pointer is not null.
Definition: assume.h:1737
static void are_equal(float expected, float actual, float tolerance, const tunit::line_info &line_info)
Assumes that two type are equal.
Definition: assume.h:159
static void is_not_null(const TPointer *pointer)
Asserts that the pointer is not null.
Definition: assert.h:1712
static void are_equal(long double expected, long double actual, long double tolerance)
Assumes that two type are equal.
Definition: assume.h:269