39 template<
typename expected_t,
typename actual_t>
51 template<
typename expected_t,
typename actual_t>
63 template<
typename expected_t,
typename actual_t>
76 template<
typename expected_t,
typename actual_t>
79 assert::are_equal(expected, actual, message, stack_frame);
87#if defined(__cpp_lib_char8_t)
109 static void are_equal(
float expected,
float actual,
float tolerance);
161 static void are_equal(
double expected,
double actual,
double tolerance);
213 static void are_equal(
long double expected,
long double actual,
long double tolerance);
239 static void are_equal(
long double expected,
long double actual,
long double tolerance,
const xtd::ustring& message);
264 template<
typename expected_t,
typename actual_t>
276 template<
typename expected_t,
typename actual_t>
288 template<
typename expected_t,
typename actual_t>
302 template<
typename expected_t,
typename actual_t>
305 assert::are_not_equal(expected, actual, message, stack_frame);
313#if defined(__cpp_lib_char8_t)
333 template<
typename expected_t,
typename actual_t>
348 template<
typename expected_t,
typename actual_t>
363 template<
typename expected_t,
typename actual_t>
379 template<
typename expected_t,
typename actual_t>
382 assert::are_not_same(expected, actual, message, stack_frame);
400 template<
typename expected_t,
typename actual_t>
415 template<
typename expected_t,
typename actual_t>
430 template<
typename expected_t,
typename actual_t>
446 template<
typename expected_t,
typename actual_t>
449 assert::are_same(expected, actual, message, stack_frame);
465 template<
typename item_t,
typename collection_t>
478 template<
typename item_t,
typename collection_t>
491 template<
typename item_t,
typename collection_t>
505 template<
typename item_t,
typename collection_t>
508 assert::contains(item, collection, message, stack_frame);
515 template<
typename item_t,
typename value_t>
517 template<
typename item_t,
typename value_t>
518 static void contains(
const item_t& item,
const std::initializer_list<value_t>& values,
const xtd::diagnostics::stack_frame& stack_frame) {contains(item, values,
"", stack_frame);}
519 template<
typename item_t,
typename value_t>
521 template<
typename item_t,
typename value_t>
524 assert::contains(item, values, message, stack_frame);
530#if defined(__cpp_lib_char8_t)
593 template<
typename value_t>
606 template<
typename value_t>
619 template<
typename value_t>
633 template<
typename value_t>
636 assert::is_empty(value, message, stack_frame);
643 template<
typename value_t>
645 template<
typename value_t>
646 static void is_empty(
const std::initializer_list<value_t>& value,
const xtd::diagnostics::stack_frame& stack_frame) {is_empty(value,
"", stack_frame);}
647 template<
typename value_t>
649 template<
typename value_t>
652 assert::is_empty(values, message, stack_frame);
658#if defined(__cpp_lib_char8_t)
724 template<
typename value1_t,
typename value2_t>
736 template<
typename value1_t,
typename value2_t>
748 template<
typename value1_t,
typename value2_t>
761 template<
typename value1_t,
typename value2_t>
764 assert::is_greater(val1, val2, message, stack_frame);
772#if defined(__cpp_lib_char8_t)
790 template<
typename value1_t,
typename value2_t>
803 template<
typename value1_t,
typename value2_t>
816 template<
typename value1_t,
typename value2_t>
830 template<
typename value1_t,
typename value2_t>
833 assert::is_greater_or_equal(val1, val2, message, stack_frame);
841#if defined(__cpp_lib_char8_t)
858 template<
typename type_t,
typename value_t>
870 template<
typename type_t,
typename value_t>
882 template<
typename type_t,
typename value_t>
895 template<
typename type_t,
typename value_t>
898 assert::is_instance_of<type_t>(value, message, stack_frame);
913 template<
typename value1_t,
typename value2_t>
925 template<
typename value1_t,
typename value2_t>
937 template<
typename value1_t,
typename value2_t>
950 template<
typename value1_t,
typename value2_t>
953 assert::is_less(val1, val2, message, stack_frame);
961#if defined(__cpp_lib_char8_t)
979 template<
typename value1_t,
typename value2_t>
992 template<
typename value1_t,
typename value2_t>
1005 template<
typename value1_t,
typename value2_t>
1019 template<
typename value1_t,
typename value2_t>
1022 assert::is_less_or_equal(val1, val2, message, stack_frame);
1030#if defined(__cpp_lib_char8_t)
1193 template<
typename value_t>
1206 template<
typename value_t>
1219 template<
typename value_t>
1233 template<
typename value_t>
1236 assert::is_negative(value, message, stack_frame);
1252 template<
typename value_t>
1265 template<
typename value_t>
1278 template<
typename value_t>
1292 template<
typename value_t>
1295 assert::is_not_empty(value, message, stack_frame);
1302 template<
typename value_t>
1304 template<
typename value_t>
1305 static void is_not_empty(
const std::initializer_list<value_t>& value,
const xtd::diagnostics::stack_frame& stack_frame) {is_not_empty(value,
"", stack_frame);}
1306 template<
typename value_t>
1308 template<
typename value_t>
1311 assert::is_not_empty(value, message, stack_frame);
1317#if defined(__cpp_lib_char8_t)
1334 template<
typename type_t,
typename value_t>
1346 template<
typename type_t,
typename value_t>
1358 template<
typename type_t,
typename value_t>
1371 template<
typename type_t,
typename value_t>
1374 assert::is_not_instance_of<type_t>(value, message, stack_frame);
1391 template<
typename po
inter_t>
1405 template<
typename po
inter_t>
1419 template<
typename po
inter_t>
1434 template<
typename po
inter_t>
1437 assert::is_not_null(pointer, message, stack_frame);
1452 template<
typename optional_t>
1465 template<
typename optional_t>
1478 template<
typename optional_t>
1492 template<
typename optional_t>
1495 assert::is_not_null(opt, message, stack_frame);
1510 template<
typename po
inter_t>
1523 template<
typename po
inter_t>
1536 template<
typename po
inter_t>
1550 template<
typename po
inter_t>
1553 assert::is_not_null(pointer, message, stack_frame);
1568 template<
typename po
inter_t>
1581 template<
typename po
inter_t>
1594 template<
typename po
inter_t>
1608 template<
typename po
inter_t>
1611 assert::is_not_null(pointer, message, stack_frame);
1627 template<
typename po
inter_t>
1641 template<
typename po
inter_t>
1655 template<
typename po
inter_t>
1670 template<
typename po
inter_t>
1673 assert::is_not_null(pointer, message, stack_frame);
1729 template<
typename value_t>
1742 template<
typename value_t>
1755 template<
typename value_t>
1769 template<
typename value_t>
1772 assert::is_not_zero(value, message, stack_frame);
1789 template<
typename po
inter_t>
1803 template<
typename po
inter_t>
1817 template<
typename po
inter_t>
1832 template<
typename po
inter_t>
1835 assert::is_null(pointer, message, stack_frame);
1850 template<
typename optional_t>
1863 template<
typename optional_t>
1876 template<
typename optional_t>
1890 template<
typename optional_t>
1893 assert::is_null(opt, message, stack_frame);
1908 template<
typename po
inter_t>
1921 template<
typename po
inter_t>
1934 template<
typename po
inter_t>
1948 template<
typename po
inter_t>
1951 assert::is_null(pointer, message, stack_frame);
1966 template<
typename po
inter_t>
1979 template<
typename po
inter_t>
1992 template<
typename po
inter_t>
2006 template<
typename po
inter_t>
2009 assert::is_null(pointer, message, stack_frame);
2026 template<
typename po
inter_t>
2041 template<
typename po
inter_t>
2056 template<
typename po
inter_t>
2072 template<
typename po
inter_t>
2075 assert::is_null(pointer, message, stack_frame);
2131 template<
typename value_t>
2144 template<
typename value_t>
2157 template<
typename value_t>
2171 template<
typename value_t>
2174 assert::is_positive(value, message, stack_frame);
2239 template<
typename value_t>
2252 template<
typename value_t>
2265 template<
typename value_t>
2279 template<
typename value_t>
2282 assert::is_zero(value, message, stack_frame);
2298 template<
typename exception_t>
2311 template<
typename exception_t>
2324 template<
typename exception_t>
2338 template<
typename exception_t>
2341 assert::throws<exception_t>(statement, message, stack_frame);
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:37
static stack_frame empty() noexcept
Return an empty stack frame.
The assume class contains a collection of static methods that implement the most common assertions us...
Definition assume.h:21
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Assumes that two objects do refer to differents objects.
Definition assume.h:431
static void is_zero(const value_t &value)
Assumes that ta condition is zero.
Definition assume.h:2240
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two objects do refer to differents objects.
Definition assume.h:349
static void is_not_null(std::nullptr_t pointer)
Assumes that the pointer is not null.
static void are_equal(float expected, float actual, float tolerance)
Assumes that two type are equal.
static void is_less_or_equal(const value1_t &val1, const value2_t &val2)
Assumes that the first value is is_less than or equal to the second value.
Definition assume.h:980
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
static void is_NaN(long double value, const xtd::ustring &message)
Assumes that a value is NaN.
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1642
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:1922
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1582
static void are_equal(float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void are_same(const expected_t &expected, const actual_t &actual)
Assumes that two objects do refer to differents objects.
Definition assume.h:401
static void is_positive(const value_t &value)
Assumes that ta condition is positive.
Definition assume.h:2132
static void are_not_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are not equal.
Definition assume.h:265
static void is_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the optional is std::nullopt.
Definition assume.h:1864
static void are_equal(float expected, float &actual, float tolerance, const xtd::ustring &message)
Assumes that two type are equal.
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message)
Assumes that two type are equal.
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is is_less than the second value.
Definition assume.h:926
static void throws_any(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
static void is_NaN(float value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
static void is_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is positive.
Definition assume.h:2145
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
static void are_not_same(const expected_t &expected, const actual_t &actual)
Assumes that two objects do refer to differents objects.
Definition assume.h:334
static void is_null(const std::optional< optional_t > &opt, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the optional is std::nullopt.
Definition assume.h:1891
static void are_equal(float expected, float actual, float tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void is_false(bool condition, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is false.
static void is_not_null(const pointer_t *pointer)
Assumes that the pointer is not null.
Definition assume.h:1392
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Assumes that the first value is greater than or equal to the second value.
Definition assume.h:817
static void is_not_empty(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection does not contain any item.
Definition assume.h:1293
static void is_not_null(const std::optional< optional_t > &opt, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the optional is not std::nullopt.
Definition assume.h:1493
static void is_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition assume.h:1967
static void is_zero(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is zero.
Definition assume.h:2266
static void are_equal(double expected, double actual, double tolerance)
Assumes that two type are equal.
static void is_NaN(double value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
static void does_not_throw(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2)
Assumes that the first value is greater than or equal to the second value.
Definition assume.h:791
static void is_not_null(const std::optional< optional_t > &opt)
Assumes that the optional is not std::nullopt.
Definition assume.h:1453
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Assumes that the first value is is_less than or equal to the second value.
Definition assume.h:1006
static void is_not_null(const pointer_t *pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1435
static void is_zero(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is zero.
Definition assume.h:2280
static void is_NaN(float value, const xtd::ustring &message)
Assumes that a value is NaN.
static void contains(const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection contains an item.
Definition assume.h:479
static void is_NaN(float value)
that a value is NaN.
static void is_instance_of(const value_t &value)
Assumes that an object is of the type supplied or a derived type.
Definition assume.h:859
static void is_not_instance_of(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that an object is not of the type supplied or a derived type.
Definition assume.h:1372
static void is_not_instance_of(const value_t &value, const xtd::ustring &message)
Assumes that an object is not of the type supplied or a derived type.
Definition assume.h:1359
static void is_null(const pointer_t *pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition assume.h:1818
static void is_NaN(double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
static void is_not_zero(const value_t &value)
Assumes that ta condition is not zero.
Definition assume.h:1730
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is greater than or equal to the second value.
Definition assume.h:831
static void is_not_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
static void is_null(std::nullptr_t pointer)
Assumes that the pointer is null.
static void is_positive(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is positive.
Definition assume.h:2158
static void is_not_zero(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is not zero.
Definition assume.h:1756
static void is_true(bool condition)
Assumes that ta condition is true.
static void is_NaN(long double value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message)
Assumes that the staement does not throw an exception.
static void is_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that an object is of the type supplied or a derived type.
Definition assume.h:871
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is greater than or equal to the second value.
Definition assume.h:804
static void is_negative(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is negative.
Definition assume.h:1234
static void are_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are equal.
Definition assume.h:40
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1609
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:1980
static void is_not_null(const pointer_t *pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition assume.h:1420
static void is_false(bool condition, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is false.
static void is_true(bool condition, const xtd::ustring &message)
Assumes that a condition is true.
static void is_false(bool condition, const xtd::ustring &message)
Assumes that a condition is false.
static void is_not_null(const std::optional< optional_t > &opt, const xtd::ustring &message)
Assumes that the optional is not std::nullopt.
Definition assume.h:1479
static void is_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition assume.h:2027
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition assume.h:1595
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are not equal.
Definition assume.h:277
static void is_false(bool condition)
Assumes that ta condition is false.
static void is_NaN(double value, const xtd::ustring &message)
Assumes that a value is NaN.
static void are_equal(double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void is_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection does not contain any item.
Definition assume.h:1266
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message)
Assumes that two type are equal.
static void is_not_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition assume.h:1569
static void does_not_throw(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
static void is_not_zero(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is not zero.
Definition assume.h:1770
static void is_greater(const value1_t &val1, const value2_t &val2)
Assumes that the first value is greater than the second value.
Definition assume.h:725
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition assume.h:52
static void contains(const item_t &item, const collection_t &collection, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection contains an item.
Definition assume.h:506
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition assume.h:1537
static void is_null(const std::optional< optional_t > &opt, const xtd::ustring &message)
Assumes that the optional is std::nullopt.
Definition assume.h:1877
static void is_NaN(long double value)
that a value is NaN.
static void is_not_instance_of(const value_t &value)
Assumes that an object is not of the type supplied or a derived type.
Definition assume.h:1335
static void is_not_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the optional is not std::nullopt.
Definition assume.h:1466
static void is_true(bool condition, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is true.
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1524
static void is_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition assume.h:1909
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Assumes that two type are not equal.
Definition assume.h:289
static void are_equal(long double expected, long double actual, long double tolerance)
Assumes that two type are equal.
static void is_not_empty(const value_t &value, const xtd::ustring &message)
Assumes that collection does not contain any item.
Definition assume.h:1279
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:2007
static void contains(const item_t &item, const collection_t &collection, const xtd::ustring &message)
Assumes that collection contains an item.
Definition assume.h:492
static void is_less(const value1_t &val1, const value2_t &val2)
Assumes that the first value is is_less than the second value.
Definition assume.h:914
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message)
Assumes that the staement does not throw an exception.
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are not equal.
Definition assume.h:303
static void is_null(const pointer_t *pointer)
Assumes that the pointer is null.
Definition assume.h:1790
static void is_positive(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is positive.
Definition assume.h:2172
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection contains an item.
Definition assume.h:607
static void is_negative(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is negative.
Definition assume.h:1220
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is is_less than the second value.
Definition assume.h:951
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is greater than the second value.
Definition assume.h:762
static void is_null(const std::optional< optional_t > &opt)
Assumes that the optional is std::nullopt.
Definition assume.h:1851
static void is_empty(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection contains an item.
Definition assume.h:634
static void is_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is zero.
Definition assume.h:2253
static void throws_any(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition assume.h:2057
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition assume.h:77
static void is_not_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that an object is not of the type supplied or a derived type.
Definition assume.h:1347
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two objects do refer to differents objects.
Definition assume.h:447
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:2042
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Assumes that two objects do refer to differents objects.
Definition assume.h:364
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1551
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:1949
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Assumes that the first value is is_less than the second value.
Definition assume.h:938
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is greater than the second value.
Definition assume.h:737
static void is_instance_of(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that an object is of the type supplied or a derived type.
Definition assume.h:896
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is is_less than or equal to the second value.
Definition assume.h:993
static void is_empty(const value_t &value, const xtd::ustring &message)
Assumes that collection contains an item.
Definition assume.h:620
static void is_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:1804
static void is_negative(const value_t &value)
Assumes that ta condition is negative.
Definition assume.h:1194
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1671
static void is_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
static void is_null(const pointer_t *pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:1833
static void is_NaN(long double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition assume.h:1993
static void is_NaN(float value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
static void is_null(std::nullptr_t pointer, const xtd::ustring &message)
Assumes that the pointer is null.
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
static void is_NaN(double value)
that a value is NaN.
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition assume.h:2073
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Assumes that the first value is greater than the second value.
Definition assume.h:749
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
static void is_not_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition assume.h:1406
static void is_not_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is not zero.
Definition assume.h:1743
static void is_not_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition assume.h:1511
static void is_not_empty(const value_t &value)
Assumes that collection oes not contain any item.
Definition assume.h:1253
static void is_true(bool condition, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is true.
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Assumes that two type are equal.
Definition assume.h:64
static void is_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is negative.
Definition assume.h:1207
static void contains(const item_t &item, const collection_t &collection)
Assumes that collection contains an item.
Definition assume.h:466
static void is_empty(const value_t &value)
Assumes that collection contains an item.
Definition assume.h:594
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two objects do refer to differents objects.
Definition assume.h:380
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the first value is is_less than or equal to the second value.
Definition assume.h:1020
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two objects do refer to differents objects.
Definition assume.h:416
static void is_instance_of(const value_t &value, const xtd::ustring &message)
Assumes that an object is of the type supplied or a derived type.
Definition assume.h:883
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition assume.h:1656
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition assume.h:1935
static void is_not_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition assume.h:1628
The base class for assert.
Definition base_assert.h:29
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define tunit_export_
Define shared library export.
Definition tunit_export.h:13
char8_t char8
Represents a 8-bit unicode character.
Definition types.h:64
char16_t char16
Represents a 16-bit unicode character.
Definition types.h:76
char32_t char32
Represents a 32-bit unicode character.
Definition types.h:87
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::assert class.