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) 109 static void are_equal(
float expected,
float actual,
float tolerance);
135 static void are_equal(
float expected,
float& actual,
float tolerance,
const xtd::ustring& message);
161 static void are_equal(
double expected,
double actual,
double tolerance);
187 static void are_equal(
double expected,
double actual,
double tolerance,
const xtd::ustring& message);
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>
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>
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>
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>
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>
530 #if defined(__cpp_lib_char8_t) 547 static void does_not_throw(
const std::function<
void()>& statement);
569 static void does_not_throw(
const std::function<
void()>& statement,
const xtd::ustring& message);
593 template<
typename value_t>
606 template<
typename value_t>
619 template<
typename value_t>
633 template<
typename value_t>
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>
658 #if defined(__cpp_lib_char8_t) 676 static void is_false(
bool condition);
700 static void is_false(
bool condition,
const xtd::ustring& message);
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>
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>
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>
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>
1030 #if defined(__cpp_lib_char8_t) 1048 static void is_NaN(
double value);
1072 static void is_NaN(
double value,
const xtd::ustring& message);
1096 static void is_NaN(
long double value);
1120 static void is_NaN(
long double value,
const xtd::ustring& message);
1144 static void is_NaN(
float value);
1168 static void is_NaN(
float value,
const xtd::ustring& message);
1193 template<
typename value_t>
1206 template<
typename value_t>
1219 template<
typename value_t>
1233 template<
typename value_t>
1252 template<
typename value_t>
1265 template<
typename value_t>
1278 template<
typename value_t>
1292 template<
typename value_t>
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>
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>
1452 template<
typename optional_t>
1465 template<
typename optional_t>
1478 template<
typename optional_t>
1492 template<
typename optional_t>
1510 template<
typename po
inter_t>
1523 template<
typename po
inter_t>
1536 template<
typename po
inter_t>
1550 template<
typename po
inter_t>
1568 template<
typename po
inter_t>
1581 template<
typename po
inter_t>
1594 template<
typename po
inter_t>
1608 template<
typename po
inter_t>
1627 template<
typename po
inter_t>
1641 template<
typename po
inter_t>
1655 template<
typename po
inter_t>
1670 template<
typename po
inter_t>
1686 static void is_not_null(std::nullptr_t pointer);
1706 static void is_not_null(std::nullptr_t pointer,
const xtd::ustring& message);
1729 template<
typename value_t>
1742 template<
typename value_t>
1755 template<
typename value_t>
1769 template<
typename value_t>
1789 template<
typename po
inter_t>
1803 template<
typename po
inter_t>
1817 template<
typename po
inter_t>
1832 template<
typename po
inter_t>
1850 template<
typename optional_t>
1863 template<
typename optional_t>
1876 template<
typename optional_t>
1890 template<
typename optional_t>
1908 template<
typename po
inter_t>
1921 template<
typename po
inter_t>
1934 template<
typename po
inter_t>
1948 template<
typename po
inter_t>
1966 template<
typename po
inter_t>
1979 template<
typename po
inter_t>
1992 template<
typename po
inter_t>
2006 template<
typename po
inter_t>
2026 template<
typename po
inter_t>
2041 template<
typename po
inter_t>
2056 template<
typename po
inter_t>
2072 template<
typename po
inter_t>
2088 static void is_null(std::nullptr_t pointer);
2108 static void is_null(std::nullptr_t pointer,
const xtd::ustring& message);
2131 template<
typename value_t>
2144 template<
typename value_t>
2157 template<
typename value_t>
2171 template<
typename value_t>
2190 static void is_true(
bool condition);
2214 static void is_true(
bool condition,
const xtd::ustring& message);
2239 template<
typename value_t>
2252 template<
typename value_t>
2265 template<
typename value_t>
2279 template<
typename value_t>
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);
2356 static void throws_any(
const std::function<
void()>& statement);
2378 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 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_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:1935
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
The base class for assert.
Definition: base_assert.h:29
static void is_not_empty(const value_t &value)
Assumes that collection oes not contain any item.
Definition: assume.h:1253
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_not_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1511
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_null(const pointer_t *pointer)
Asserts that the pointer is null.
Definition: assert.h:1781
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_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 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_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_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is positive.
Definition: assume.h:2145
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_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 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_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is zero.
Definition: assume.h:2253
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_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 is_null(const pointer_t *pointer)
Assumes that the pointer is null.
Definition: assume.h:1790
static void is_null(const std::optional< optional_t > &opt)
Assumes that the optional is std::nullopt.
Definition: assume.h:1851
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_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_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 are_not_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are not equal.
Definition: assert.h:279
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_not_empty(const value_t &value)
Asserts that collection oes not contain any item.
Definition: assert.h:1256
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 is_not_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1569
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 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
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static void is_zero(const value_t &value)
Assumes that ta condition is zero.
Definition: assume.h:2240
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_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 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
The assume class contains a collection of static methods that implement the most common assertions us...
Definition: assume.h:21
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 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_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2027
static void is_not_null(const pointer_t *pointer)
Assumes that the pointer is not null.
Definition: assume.h:1392
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 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 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_positive(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is positive.
Definition: assume.h:2158
static void abort()
Abort current test. This is used by the other assert functions.
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_not_same(const expected_t &expected, const actual_t &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:346
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
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_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_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_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_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2057
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 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_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, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:52
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_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_not_null(const std::optional< optional_t > &opt)
Assumes that the optional is not std::nullopt.
Definition: assume.h:1453
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 are_not_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are not equal.
Definition: assume.h:265
static void contains(const item_t &item, const collection_t &collection)
Assumes that collection contains an item.
Definition: assume.h:466
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_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_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:1967
static void is_empty(const value_t &value)
Assumes that collection contains an item.
Definition: assume.h:594
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_empty(const value_t &value)
Asserts that collection contains an item.
Definition: assert.h:604
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_not_zero(const value_t &value)
Assumes that ta condition is not zero.
Definition: assume.h:1730
static void contains(const item_t &item, const collection_t &collection)
Asserts that collection contains an item.
Definition: assert.h:476
static void is_negative(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is negative.
Definition: assume.h:1220
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::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
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
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 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_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_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_not_zero(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is not zero.
Definition: assume.h:1756
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_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
Contains xtd::tunit::assert class.
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_negative(const value_t &value)
Assumes that ta condition is negative.
Definition: assume.h:1194
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_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 std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition: assume.h:1656
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_positive(const value_t &value)
Assumes that ta condition is positive.
Definition: assume.h:2132
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 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_not_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1628
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 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 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_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
char32_t char32
Represents a 32-bit unicode character.
Definition: types.h:85
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 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_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 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_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_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_negative(const value_t &value)
Asserts that ta condition is negative.
Definition: assert.h:1198
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_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 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_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 is_not_zero(const value_t &value)
Asserts that ta condition is not zero.
Definition: assert.h:1722
static void is_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:1909
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
char8_t char8
Represents a 8-bit unicode character.
Definition: types.h:62
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 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
char16_t char16
Represents a 16-bit unicode character.
Definition: types.h:74
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 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_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_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_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_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 are_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are equal.
Definition: assert.h:55
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 are_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are equal.
Definition: assume.h:40
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