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)
108 static void are_equal(
float expected,
float actual,
float tolerance);
156 static void are_equal(
double expected,
double actual,
double tolerance);
204 static void are_equal(
long double expected,
long double actual,
long double tolerance);
228 static void are_equal(
long double expected,
long double actual,
long double tolerance,
const xtd::ustring& message);
251 template<
typename expected_t,
typename actual_t>
263 template<
typename expected_t,
typename actual_t>
275 template<
typename expected_t,
typename actual_t>
288 template<
typename expected_t,
typename actual_t>
291 assert::are_not_equal(expected, actual, message, stack_frame);
299#if defined(__cpp_lib_char8_t)
318 template<
typename expected_t,
typename actual_t>
333 template<
typename expected_t,
typename actual_t>
348 template<
typename expected_t,
typename actual_t>
364 template<
typename expected_t,
typename actual_t>
367 assert::are_not_same(expected, actual, message, stack_frame);
384 template<
typename expected_t,
typename actual_t>
399 template<
typename expected_t,
typename actual_t>
414 template<
typename expected_t,
typename actual_t>
430 template<
typename expected_t,
typename actual_t>
433 assert::are_same(expected, actual, message, stack_frame);
448 template<
typename item_t,
typename collection_t>
461 template<
typename item_t,
typename collection_t>
474 template<
typename item_t,
typename collection_t>
488 template<
typename item_t,
typename collection_t>
491 assert::contains(item, collection, message, stack_frame);
498 template<
typename item_t,
typename value_t>
500 template<
typename item_t,
typename value_t>
501 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);}
502 template<
typename item_t,
typename value_t>
504 template<
typename item_t,
typename value_t>
507 assert::contains(item, values, message, stack_frame);
514#if defined(__cpp_lib_char8_t)
572 template<
typename value_t>
585 template<
typename value_t>
598 template<
typename value_t>
612 template<
typename value_t>
615 assert::is_empty(value, message, stack_frame);
622 template<
typename value_t>
624 template<
typename value_t>
625 static void is_empty(
const std::initializer_list<value_t>& value,
const xtd::diagnostics::stack_frame& stack_frame) {is_empty(value,
"", stack_frame);}
626 template<
typename value_t>
628 template<
typename value_t>
631 assert::is_empty(values, message, stack_frame);
638#if defined(__cpp_lib_char8_t)
699 template<
typename value1_t,
typename value2_t>
711 template<
typename value1_t,
typename value2_t>
723 template<
typename value1_t,
typename value2_t>
736 template<
typename value1_t,
typename value2_t>
739 assert::is_greater(val1, val2, message, stack_frame);
747#if defined(__cpp_lib_char8_t)
764 template<
typename value1_t,
typename value2_t>
777 template<
typename value1_t,
typename value2_t>
790 template<
typename value1_t,
typename value2_t>
804 template<
typename value1_t,
typename value2_t>
807 assert::is_greater_or_equal(val1, val2, message, stack_frame);
815#if defined(__cpp_lib_char8_t)
831 template<
typename type_t,
typename value_t>
843 template<
typename type_t,
typename value_t>
855 template<
typename type_t,
typename value_t>
868 template<
typename type_t,
typename value_t>
871 assert::is_instance_of<type_t>(value, message, stack_frame);
885 template<
typename value1_t,
typename value2_t>
897 template<
typename value1_t,
typename value2_t>
909 template<
typename value1_t,
typename value2_t>
922 template<
typename value1_t,
typename value2_t>
925 assert::is_less(val1, val2, message, stack_frame);
933#if defined(__cpp_lib_char8_t)
950 template<
typename value1_t,
typename value2_t>
963 template<
typename value1_t,
typename value2_t>
976 template<
typename value1_t,
typename value2_t>
990 template<
typename value1_t,
typename value2_t>
993 assert::is_less_or_equal(val1, val2, message, stack_frame);
1001#if defined(__cpp_lib_char8_t)
1151 template<
typename value_t>
1164 template<
typename value_t>
1177 template<
typename value_t>
1191 template<
typename value_t>
1194 assert::is_negative(value, message, stack_frame);
1209 template<
typename value_t>
1222 template<
typename value_t>
1235 template<
typename value_t>
1249 template<
typename value_t>
1252 assert::is_not_empty(value, message, stack_frame);
1259 template<
typename value_t>
1261 template<
typename value_t>
1262 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);}
1263 template<
typename value_t>
1265 template<
typename value_t>
1268 assert::is_not_empty(value, message, stack_frame);
1275#if defined(__cpp_lib_char8_t)
1291 template<
typename type_t,
typename value_t>
1303 template<
typename type_t,
typename value_t>
1315 template<
typename type_t,
typename value_t>
1328 template<
typename type_t,
typename value_t>
1331 assert::is_not_instance_of<type_t>(value, message, stack_frame);
1347 template<
typename po
inter_t>
1361 template<
typename po
inter_t>
1375 template<
typename po
inter_t>
1390 template<
typename po
inter_t>
1393 assert::is_not_null(pointer, message, stack_frame);
1408 template<
typename optional_t>
1421 template<
typename optional_t>
1434 template<
typename optional_t>
1448 template<
typename optional_t>
1451 assert::is_not_null(opt, message, stack_frame);
1466 template<
typename po
inter_t>
1479 template<
typename po
inter_t>
1492 template<
typename po
inter_t>
1506 template<
typename po
inter_t>
1509 assert::is_not_null(pointer, message, stack_frame);
1524 template<
typename po
inter_t>
1537 template<
typename po
inter_t>
1550 template<
typename po
inter_t>
1564 template<
typename po
inter_t>
1567 assert::is_not_null(pointer, message, stack_frame);
1584 template<
typename po
inter_t>
1599 template<
typename po
inter_t>
1614 template<
typename po
inter_t>
1630 template<
typename po
inter_t>
1679 template<
typename value_t>
1692 template<
typename value_t>
1705 template<
typename value_t>
1719 template<
typename value_t>
1722 assert::is_not_zero(value, message, stack_frame);
1738 template<
typename po
inter_t>
1752 template<
typename po
inter_t>
1766 template<
typename po
inter_t>
1781 template<
typename po
inter_t>
1784 assert::is_null(pointer, message, stack_frame);
1799 template<
typename optional_t>
1812 template<
typename optional_t>
1825 template<
typename optional_t>
1839 template<
typename optional_t>
1842 assert::is_null(opt, message, stack_frame);
1857 template<
typename po
inter_t>
1870 template<
typename po
inter_t>
1883 template<
typename po
inter_t>
1897 template<
typename po
inter_t>
1900 assert::is_null(pointer, message, stack_frame);
1915 template<
typename po
inter_t>
1928 template<
typename po
inter_t>
1941 template<
typename po
inter_t>
1955 template<
typename po
inter_t>
1958 assert::is_null(pointer, message, stack_frame);
1975 template<
typename po
inter_t>
1990 template<
typename po
inter_t>
2005 template<
typename po
inter_t>
2021 template<
typename po
inter_t>
2024 assert::is_null(pointer, message, stack_frame);
2076 template<
typename value_t>
2089 template<
typename value_t>
2102 template<
typename value_t>
2116 template<
typename value_t>
2119 assert::is_positive(value, message, stack_frame);
2179 template<
typename value_t>
2192 template<
typename value_t>
2205 template<
typename value_t>
2219 template<
typename value_t>
2222 assert::is_zero(value, message, stack_frame);
2237 template<
typename exception_t>
2250 template<
typename exception_t>
2263 template<
typename exception_t>
2277 template<
typename exception_t>
2280 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 base class for assert.
Definition base_assert.h:29
The valid class contains a collection of static methods that implement the most common assertions use...
Definition valid.h:22
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1631
static void is_greater(const value1_t &val1, const value2_t &val2)
Validates that the first value is greater than the second value.
Definition valid.h:700
static void is_false(bool condition, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a condition is false.
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1956
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1600
static void is_null(const std::unique_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition valid.h:1858
static void is_not_null(const pointer_t *pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1391
static void are_equal(float expected, float actual, float tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates 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)
Validates 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 is_false(bool condition, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a condition is false.
static void is_null(const std::optional< optional_t > &opt, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the optional is std::nullopt.
Definition valid.h:1840
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are not equal.
Definition valid.h:289
static void are_equal(float expected, float actual, float tolerance)
Validates that two type are equal.
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1991
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1480
static void contains(const item_t &item, const collection_t &collection, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection contains an item.
Definition valid.h:489
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:2022
static void is_positive(const value_t &value, const xtd::ustring &message)
Validates that ta condition is positive.
Definition valid.h:2103
static void throws_any(const std::function< void()> &statement)
Validates that the statement does not throw an exception.
static void is_NaN(float value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
static void is_NaN(float value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a value is NaN.
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1507
static void is_not_zero(const value_t &value, const xtd::ustring &message)
Validates that ta condition is not zero.
Definition valid.h:1706
static void is_null(std::nullptr_t pointer)
Validates that the pointer is null.
static void is_null(const pointer_t *pointer)
Validates that the pointer is null.
Definition valid.h:1739
static void is_not_instance_of(const value_t &value)
Validates that an object is not of the type supplied or a derived type.
Definition valid.h:1292
static void is_not_zero(const value_t &value)
Validates that ta condition is not zero.
Definition valid.h:1680
static void are_equal(float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two objects do refer to different objects.
Definition valid.h:431
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is null.
Definition valid.h:1942
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Validates that the first value is is_less than or equal to the second value.
Definition valid.h:977
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two objects do refer to different objects.
Definition valid.h:400
static void is_not_zero(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is not zero.
Definition valid.h:1720
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1538
static void is_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the optional is std::nullopt.
Definition valid.h:1813
static void is_empty(const value_t &value, const xtd::ustring &message)
Validates that collection contains an item.
Definition valid.h:599
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message)
Validates that two type are equal.
static void is_null(const std::optional< optional_t > &opt, const xtd::ustring &message)
Validates that the optional is std::nullopt.
Definition valid.h:1826
static void is_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is positive.
Definition valid.h:2090
static void contains(const item_t &item, const collection_t &collection)
Validates that collection contains an item.
Definition valid.h:449
static void is_not_empty(const value_t &value, const xtd::ustring &message)
Validates that collection does not contain any item.
Definition valid.h:1236
static void is_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is zero.
Definition valid.h:2193
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)
Validates that the first value is greater than or equal to the second value.
Definition valid.h:805
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the statement does not throw an exception.
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1565
static void is_false(bool condition, const xtd::ustring &message)
Validates that a condition is false.
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1898
static void is_not_null(const std::shared_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition valid.h:1525
static void is_null(const pointer_t *pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1782
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is is_less than the second value.
Definition valid.h:923
static void is_not_null(const std::weak_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition valid.h:1585
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is greater than the second value.
Definition valid.h:737
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is null.
Definition valid.h:1884
static void is_less_or_equal(const value1_t &val1, const value2_t &val2)
Validates that the first value is is_less than or equal to the second value.
Definition valid.h:951
static void is_true(bool condition, const xtd::ustring &message)
Validates that a condition is true.
static void is_not_empty(const value_t &value)
Validates that collection oes not contain any item.
Definition valid.h:1210
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)
Validates that the first value is is_less than or equal to the second value.
Definition valid.h:991
static void are_equal(const expected_t &expected, const actual_t &actual)
Validates that two type are equal.
Definition valid.h:40
static void is_not_null(const std::optional< optional_t > &opt)
Validates that the optional is not std::nullopt.
Definition valid.h:1409
static void does_not_throw(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the statement does not throw an exception.
static void are_equal(double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is null.
Definition valid.h:2006
static void is_NaN(long double value, const xtd::ustring &message)
Validates that a value is NaN.
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message)
Validates that the pointer is not null.
static void is_not_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
Definition valid.h:1362
static void is_NaN(long double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a value is NaN.
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is is_less than the second value.
Definition valid.h:898
static void is_not_empty(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection does not contain any item.
Definition valid.h:1250
static void is_null(const std::weak_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition valid.h:1976
static void are_not_equal(const expected_t &expected, const actual_t &actual)
Validates that two type are not equal.
Definition valid.h:252
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Validates that the first value is greater than or equal to the second value.
Definition valid.h:791
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2)
Validates that the first value is greater than or equal to the second value.
Definition valid.h:765
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
static void is_not_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection does not contain any item.
Definition valid.h:1223
static void is_true(bool condition)
Validates that ta condition is true.
static void contains(const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection contains an item.
Definition valid.h:462
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Validates that two objects do refer to different objects.
Definition valid.h:349
static void is_NaN(float value)
that a value is NaN.
static void contains(const item_t &item, const collection_t &collection, const xtd::ustring &message)
Validates that collection contains an item.
Definition valid.h:475
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two objects do refer to different objects.
Definition valid.h:365
static void is_not_null(const std::optional< optional_t > &opt, const xtd::ustring &message)
Validates that the optional is not std::nullopt.
Definition valid.h:1435
static void is_instance_of(const value_t &value, const xtd::ustring &message)
Validates that an object is of the type supplied or a derived type.
Definition valid.h:856
static void is_zero(const value_t &value)
Validates that ta condition is zero.
Definition valid.h:2180
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
Definition valid.h:77
static void are_equal(double expected, double actual, double tolerance)
Validates that two type are equal.
static void is_false(bool condition)
Validates that ta condition is false.
static void is_negative(const value_t &value, const xtd::ustring &message)
Validates that ta condition is negative.
Definition valid.h:1178
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is greater than or equal to the second value.
Definition valid.h:778
static void is_null(const std::optional< optional_t > &opt)
Validates that the optional is std::nullopt.
Definition valid.h:1800
static void is_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is negative.
Definition valid.h:1165
static void is_NaN(double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a value is NaN.
static void is_not_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
static void is_null(const std::shared_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition valid.h:1916
static void is_not_null(const pointer_t *pointer, const xtd::ustring &message)
Validates that the pointer is not null.
Definition valid.h:1376
static void is_less(const value1_t &val1, const value2_t &val2)
Validates that the first value is is_less than the second value.
Definition valid.h:886
static void is_not_instance_of(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that an object is not of the type supplied or a derived type.
Definition valid.h:1329
static void are_same(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Validates that two objects do refer to different objects.
Definition valid.h:415
static void is_zero(const value_t &value, const xtd::ustring &message)
Validates that ta condition is zero.
Definition valid.h:2206
static void is_NaN(long double value)
that a value is NaN.
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message)
Validates that the statement does not throw an exception.
static void is_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1753
static void is_positive(const value_t &value)
Validates that ta condition is positive.
Definition valid.h:2077
static void is_true(bool condition, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a condition is true.
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the statement does not throw an exception.
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection contains an item.
Definition valid.h:586
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is greater than the second value.
Definition valid.h:712
static void is_less_or_equal(const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the first value is is_less than or equal to the second value.
Definition valid.h:964
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Validates that two type are not equal.
Definition valid.h:276
static void is_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that an object is of the type supplied or a derived type.
Definition valid.h:844
static void is_true(bool condition, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that a condition is true.
static void is_not_instance_of(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that an object is not of the type supplied or a derived type.
Definition valid.h:1304
static void is_not_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is not null.
Definition valid.h:1615
static void is_empty(const value_t &value)
Validates that collection contains an item.
Definition valid.h:573
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message)
Validates that the statement does not throw an exception.
static void is_not_null(const std::unique_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition valid.h:1467
static void is_positive(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is positive.
Definition valid.h:2117
static void are_not_same(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two objects do refer to different objects.
Definition valid.h:334
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message)
Validates that two type are equal.
static void is_empty(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that collection contains an item.
Definition valid.h:613
static void is_not_null(const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the optional is not std::nullopt.
Definition valid.h:1422
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::ustring &message)
Validates that two type are equal.
Definition valid.h:64
static void are_not_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are not equal.
Definition valid.h:264
static void is_instance_of(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that an object is of the type supplied or a derived type.
Definition valid.h:869
static void is_less(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Validates that the first value is is_less than the second value.
Definition valid.h:910
static void are_equal(float expected, float &actual, float tolerance, const xtd::ustring &message)
Validates that two type are equal.
static void is_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
static void is_instance_of(const value_t &value)
Validates that an object is of the type supplied or a derived type.
Definition valid.h:832
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1929
static void is_not_instance_of(const value_t &value, const xtd::ustring &message)
Validates that an object is not of the type supplied or a derived type.
Definition valid.h:1316
static void is_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
static void is_NaN(double value, const xtd::ustring &message)
Validates that a value is NaN.
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is not null.
static void are_not_same(const expected_t &expected, const actual_t &actual)
Validates that two objects do refer to different objects.
Definition valid.h:319
static void does_not_throw(const std::function< void()> &statement)
Validates that the statement does not throw an exception.
static void are_equal(const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame)
Validates that two type are equal.
Definition valid.h:52
static void are_equal(long double expected, long double actual, long double tolerance)
Validates that two type are equal.
static void is_greater(const value1_t &val1, const value2_t &val2, const xtd::ustring &message)
Validates that the first value is greater than the second value.
Definition valid.h:724
static void is_not_null(const std::optional< optional_t > &opt, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the optional is not std::nullopt.
Definition valid.h:1449
static void is_not_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is not zero.
Definition valid.h:1693
static void throws_any(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the statement does not throw an exception.
static void are_same(const expected_t &expected, const actual_t &actual)
Validates that two objects do refer to different objects.
Definition valid.h:385
static void is_not_null(std::nullptr_t pointer)
Validates that the pointer is not null.
static void is_negative(const value_t &value)
Validates that ta condition is negative.
Definition valid.h:1152
static void is_not_null(const pointer_t *pointer)
Validates that the pointer is not null.
Definition valid.h:1348
static void is_not_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is not null.
Definition valid.h:1551
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition valid.h:1871
static void is_not_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Validates that the pointer is not null.
Definition valid.h:1493
static void is_zero(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is zero.
Definition valid.h:2220
static void is_negative(const value_t &value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is negative.
Definition valid.h:1192
static void is_null(const pointer_t *pointer, const xtd::ustring &message)
Validates that the pointer is null.
Definition valid.h:1767
static void is_null(std::nullptr_t pointer, const xtd::ustring &message)
Validates that the pointer is null.
static void is_NaN(float value, const xtd::ustring &message)
Validates that a value is NaN.
static void is_NaN(double value)
that a value is NaN.
static void is_NaN(long double value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
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
@ error
Allows critical and error events through.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::assert class.