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>
87 #if defined(__cpp_lib_char8_t) 108 static void are_equal(
float expected,
float actual,
float tolerance);
132 static void are_equal(
float expected,
float& actual,
float tolerance,
const xtd::ustring& message);
156 static void are_equal(
double expected,
double actual,
double tolerance);
180 static void are_equal(
double expected,
double actual,
double tolerance,
const xtd::ustring& message);
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>
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>
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>
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>
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>
514 #if defined(__cpp_lib_char8_t) 530 static void does_not_throw(
const std::function<
void()>& statement);
550 static void does_not_throw(
const std::function<
void()>& statement,
const xtd::ustring& message);
572 template<
typename value_t>
585 template<
typename value_t>
598 template<
typename value_t>
612 template<
typename value_t>
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>
638 #if defined(__cpp_lib_char8_t) 655 static void is_false(
bool condition);
677 static void is_false(
bool condition,
const xtd::ustring& message);
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>
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>
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>
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>
1001 #if defined(__cpp_lib_char8_t) 1018 static void is_NaN(
double value);
1040 static void is_NaN(
double value,
const xtd::ustring& message);
1062 static void is_NaN(
long double value);
1084 static void is_NaN(
long double value,
const xtd::ustring& message);
1106 static void is_NaN(
float value);
1128 static void is_NaN(
float value,
const xtd::ustring& message);
1151 template<
typename value_t>
1164 template<
typename value_t>
1177 template<
typename value_t>
1191 template<
typename value_t>
1209 template<
typename value_t>
1222 template<
typename value_t>
1235 template<
typename value_t>
1249 template<
typename value_t>
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>
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>
1408 template<
typename optional_t>
1421 template<
typename optional_t>
1434 template<
typename optional_t>
1448 template<
typename optional_t>
1466 template<
typename po
inter_t>
1479 template<
typename po
inter_t>
1492 template<
typename po
inter_t>
1506 template<
typename po
inter_t>
1524 template<
typename po
inter_t>
1537 template<
typename po
inter_t>
1550 template<
typename po
inter_t>
1564 template<
typename po
inter_t>
1584 template<
typename po
inter_t>
1599 template<
typename po
inter_t>
1614 template<
typename po
inter_t>
1630 template<
typename po
inter_t>
1640 static void is_not_null(std::nullptr_t pointer);
1658 static void is_not_null(std::nullptr_t pointer,
const xtd::ustring& message);
1679 template<
typename value_t>
1692 template<
typename value_t>
1705 template<
typename value_t>
1719 template<
typename value_t>
1738 template<
typename po
inter_t>
1752 template<
typename po
inter_t>
1766 template<
typename po
inter_t>
1781 template<
typename po
inter_t>
1799 template<
typename optional_t>
1812 template<
typename optional_t>
1825 template<
typename optional_t>
1839 template<
typename optional_t>
1857 template<
typename po
inter_t>
1870 template<
typename po
inter_t>
1883 template<
typename po
inter_t>
1897 template<
typename po
inter_t>
1915 template<
typename po
inter_t>
1928 template<
typename po
inter_t>
1941 template<
typename po
inter_t>
1955 template<
typename po
inter_t>
1975 template<
typename po
inter_t>
1990 template<
typename po
inter_t>
2005 template<
typename po
inter_t>
2021 template<
typename po
inter_t>
2037 static void is_null(std::nullptr_t pointer);
2055 static void is_null(std::nullptr_t pointer,
const xtd::ustring& message);
2076 template<
typename value_t>
2089 template<
typename value_t>
2102 template<
typename value_t>
2116 template<
typename value_t>
2134 static void is_true(
bool condition);
2156 static void is_true(
bool condition,
const xtd::ustring& message);
2179 template<
typename value_t>
2192 template<
typename value_t>
2205 template<
typename value_t>
2219 template<
typename value_t>
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);
2294 static void throws_any(
const std::function<
void()>& statement);
2314 static void throws_any(
const std::function<
void()>& statement,
const xtd::ustring& message);
static void is_less(const value1_t &val1, const value2_t &val2)
Asserts that the first value is is_less than the second value.
Definition: assert.h:920
static void is_zero(const value_t &value)
Asserts that ta condition is zero.
Definition: assert.h:2221
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_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
The base class for assert.
Definition: base_assert.h:29
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 is_null(const pointer_t *pointer)
Asserts that the pointer is null.
Definition: assert.h:1781
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_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 succeed()
Generates a success with a generic message. This is used by the other assert functions.
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_positive(const value_t &value)
Validates that ta condition is positive.
Definition: valid.h:2077
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_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_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_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_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_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Validates that ta condition is negative.
Definition: valid.h:1165
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 is_null(const std::weak_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition: valid.h:1976
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 are_not_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are not equal.
Definition: assert.h:279
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_positive(const value_t &value)
Asserts that ta condition is positive.
Definition: assert.h:2114
static void are_same(const expected_t &expected, const actual_t &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:412
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 is_not_empty(const value_t &value)
Asserts that collection oes not contain any item.
Definition: assert.h:1256
static void is_negative(const value_t &value, const xtd::ustring &message)
Validates that ta condition is negative.
Definition: valid.h:1178
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
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_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_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_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_null(const std::shared_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition: valid.h:1916
static void contains(const item_t &item, const collection_t &collection)
Validates that collection contains an item.
Definition: valid.h:449
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 is_null(const pointer_t *pointer, const xtd::ustring &message)
Validates that the pointer is null.
Definition: valid.h:1767
static void is_null(const pointer_t *pointer)
Validates that the pointer is null.
Definition: valid.h:1739
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 are_not_same(const expected_t &expected, const actual_t &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:346
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
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
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_not_null(const pointer_t *pointer)
Validates that the pointer is not null.
Definition: valid.h:1348
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_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 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_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 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 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 pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition: valid.h:1753
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_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_greater(const value1_t &val1, const value2_t &val2)
Asserts that the first value is greater than the second value.
Definition: assert.h:733
static void is_empty(const value_t &value)
Validates that collection contains an item.
Definition: valid.h:573
static void is_negative(const value_t &value)
Validates that ta condition is negative.
Definition: valid.h:1152
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_not_null(const std::weak_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition: valid.h:1585
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 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 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 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_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 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::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_null(const std::shared_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition: valid.h:1525
static void is_empty(const value_t &value)
Asserts that collection contains an item.
Definition: assert.h:604
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_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_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_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 contains(const item_t &item, const collection_t &collection)
Asserts that collection contains an item.
Definition: assert.h:476
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_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_null(const std::optional< optional_t > &opt)
Validates that the optional is std::nullopt.
Definition: valid.h:1800
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_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 is_not_empty(const value_t &value)
Validates that collection oes not contain any item.
Definition: valid.h:1210
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
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 is_not_null(const pointer_t *pointer)
Asserts that the pointer is not null.
Definition: assert.h:1393
static stack_frame empty() noexcept
Return an empty stack frame.
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_not_null(const std::unique_ptr< pointer_t > &pointer)
Validates that the pointer is not null.
Definition: valid.h:1467
static void is_zero(const value_t &value)
Validates that ta condition is zero.
Definition: valid.h:2180
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_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
Contains xtd::tunit::assert class.
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_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_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_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_positive(const value_t &value, const xtd::ustring &message)
Validates that ta condition is positive.
Definition: valid.h:2103
static void are_equal(const expected_t &expected, const actual_t &actual)
Validates that two type are equal.
Definition: valid.h:40
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_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 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_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 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
char32_t char32
Represents a 32-bit unicode character.
Definition: types.h:85
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_not_null(const std::optional< optional_t > &opt)
Validates that the optional is not std::nullopt.
Definition: valid.h:1409
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 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_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 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 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 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 is_not_zero(const value_t &value)
Validates that ta condition is not zero.
Definition: valid.h:1680
static void is_negative(const value_t &value)
Asserts that ta condition is negative.
Definition: assert.h:1198
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_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 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
The valid class contains a collection of static methods that implement the most common assertions use...
Definition: valid.h:22
static void is_not_zero(const value_t &value)
Asserts that ta condition is not zero.
Definition: assert.h:1722
static void is_not_zero(const value_t &value, const xtd::ustring &message)
Validates that ta condition is not zero.
Definition: valid.h:1706
char8_t char8
Represents a 8-bit unicode character.
Definition: types.h:62
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_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::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_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_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_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
char16_t char16
Represents a 16-bit unicode character.
Definition: types.h:74
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::shared_ptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame)
Validates that the pointer is null.
Definition: valid.h:1929
static void are_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are equal.
Definition: assert.h:55
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 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_null(const std::unique_ptr< pointer_t > &pointer)
Validates that the pointer is null.
Definition: valid.h:1858
static void is_less_or_equal(const value1_t &val1, const value2_t &val2)
Asserts that the first value is is_less than or equal to the second value.
Definition: assert.h:985
static void is_greater_or_equal(const value1_t &val1, const value2_t &val2)
Asserts that the first value is greater than or equal to the second value.
Definition: assert.h:798
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_not_equal(const expected_t &expected, const actual_t &actual)
Validates that two type are not equal.
Definition: valid.h:252