35 template<
typename expected_t,
typename actual_t>
48 template<
typename expected_t,
typename actual_t>
61 template<
typename expected_t,
typename actual_t>
75 template<
typename expected_t,
typename actual_t>
223 static void are_equal(
double expected,
double actual,
double tolerance) {
are_equal(expected, actual, tolerance,
"",
csf_);}
285 static void are_equal(
long double expected,
long double actual,
long double tolerance) {
are_equal(expected, actual, tolerance,
"",
csf_);}
345 template<
typename expected_t,
typename actual_t>
358 template<
typename expected_t,
typename actual_t>
371 template<
typename expected_t,
typename actual_t>
385 template<
typename expected_t,
typename actual_t>
448 template<
typename expected_t,
typename actual_t>
464 template<
typename expected_t,
typename actual_t>
480 template<
typename expected_t,
typename actual_t>
497 template<
typename expected_t,
typename actual_t>
518 template<
typename expected_t,
typename actual_t>
534 template<
typename expected_t,
typename actual_t>
550 template<
typename expected_t,
typename actual_t>
567 template<
typename expected_t,
typename actual_t>
586 template<
typename item_t,
typename collection_t>
600 template<
typename item_t,
typename collection_t>
614 template<
typename item_t,
typename collection_t>
629 template<
typename item_t,
typename collection_t>
639 template<
typename item_t,
typename value_t>
641 template<
typename item_t,
typename value_t>
643 template<
typename item_t,
typename value_t>
645 template<
typename item_t,
typename value_t>
759 template<
typename value_t>
773 template<
typename value_t>
787 template<
typename value_t>
802 template<
typename value_t>
812 template<
typename value_t>
814 template<
typename value_t>
816 template<
typename value_t>
818 template<
typename value_t>
935 template<
typename value1_t,
typename value2_t>
948 template<
typename value1_t,
typename value2_t>
949 static void is_greater(
const value1_t& val1,
const value2_t& val2,
const xtd::diagnostics::stack_frame& stack_frame) {is_greater(val1, val2,
"", stack_frame);}
961 template<
typename value1_t,
typename value2_t>
975 template<
typename value1_t,
typename value2_t>
1036 template<
typename value1_t,
typename value2_t>
1050 template<
typename value1_t,
typename value2_t>
1064 template<
typename value1_t,
typename value2_t>
1079 template<
typename value1_t,
typename value2_t>
1139 template<
typename type_t,
typename value_t>
1152 template<
typename type_t,
typename value_t>
1165 template<
typename type_t,
typename value_t>
1179 template<
typename type_t,
typename value_t>
1182 assert::is_instance_of<type_t>(value, message, stack_frame);
1197 template<
typename value1_t,
typename value2_t>
1210 template<
typename value1_t,
typename value2_t>
1223 template<
typename value1_t,
typename value2_t>
1237 template<
typename value1_t,
typename value2_t>
1298 template<
typename value1_t,
typename value2_t>
1312 template<
typename value1_t,
typename value2_t>
1326 template<
typename value1_t,
typename value2_t>
1341 template<
typename value1_t,
typename value2_t>
1576 template<
typename value_t>
1590 template<
typename value_t>
1604 template<
typename value_t>
1619 template<
typename value_t>
1638 template<
typename value_t>
1652 template<
typename value_t>
1666 template<
typename value_t>
1681 template<
typename value_t>
1691 template<
typename value_t>
1693 template<
typename value_t>
1695 template<
typename value_t>
1697 template<
typename value_t>
1756 template<
typename type_t,
typename value_t>
1769 template<
typename type_t,
typename value_t>
1782 template<
typename type_t,
typename value_t>
1796 template<
typename type_t,
typename value_t>
1799 assert::is_not_instance_of<type_t>(value, message, stack_frame);
1816 template<
typename po
inter_t>
1831 template<
typename po
inter_t>
1846 template<
typename po
inter_t>
1862 template<
typename po
inter_t>
1881 template<
typename po
inter_t>
1895 template<
typename po
inter_t>
1909 template<
typename po
inter_t>
1924 template<
typename po
inter_t>
1943 template<
typename po
inter_t>
1957 template<
typename po
inter_t>
1971 template<
typename po
inter_t>
1986 template<
typename po
inter_t>
2007 template<
typename po
inter_t>
2023 template<
typename po
inter_t>
2039 template<
typename po
inter_t>
2056 template<
typename po
inter_t>
2119 template<
typename value_t>
2133 template<
typename value_t>
2147 template<
typename value_t>
2162 template<
typename value_t>
2182 template<
typename po
inter_t>
2197 template<
typename po
inter_t>
2212 template<
typename po
inter_t>
2228 template<
typename po
inter_t>
2247 template<
typename po
inter_t>
2261 template<
typename po
inter_t>
2275 template<
typename po
inter_t>
2290 template<
typename po
inter_t>
2309 template<
typename po
inter_t>
2323 template<
typename po
inter_t>
2337 template<
typename po
inter_t>
2352 template<
typename po
inter_t>
2373 template<
typename po
inter_t>
2389 template<
typename po
inter_t>
2405 template<
typename po
inter_t>
2422 template<
typename po
inter_t>
2485 template<
typename value_t>
2499 template<
typename value_t>
2513 template<
typename value_t>
2528 template<
typename value_t>
2605 template<
typename value_t>
2619 template<
typename value_t>
2633 template<
typename value_t>
2648 template<
typename value_t>
2667 template<
typename exception_t>
2681 template<
typename exception_t>
2695 template<
typename exception_t>
2710 template<
typename exception_t>
2713 assert::throws<exception_t>(statement, message, stack_frame);
Contains xtd::tunit::assert class.
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:29
static stack_frame empty() noexcept
Return an empty stack frame.
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:451
static void are_same(const expected_t &expected, const actual_t &actual)
Asserts that two objects do refer to differents objects.
Definition: assert.h:520
static void is_false(bool condition)
Asserts that ta condition is false.
Definition: assert.h:884
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:1191
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:1036
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:1287
static void is_NaN(double value)
that a value is NaN.
Definition: assert.h:1384
static void throws_any(const std::function< void()> &statement)
Asserts that the staement does not throw an exception.
Definition: assert.h:2675
static void is_negative(const value_t &value)
Asserts that ta condition is negative.
Definition: assert.h:1556
static void is_empty(const value_t &value)
Asserts that collection contains an item.
Definition: assert.h:768
static void is_true(bool condition)
Asserts that ta condition is true.
Definition: assert.h:2489
static void does_not_throw(const std::function< void()> &statement)
Asserts that the staement does not throw an exception.
Definition: assert.h:709
static void is_not_empty(const value_t &value)
Asserts that collection oes not contain any item.
Definition: assert.h:1617
static void is_not_null(const pointer_t *pointer)
Asserts that the pointer is not null.
Definition: assert.h:1787
static void is_positive(const value_t &value)
Asserts that ta condition is positive.
Definition: assert.h:2429
static void is_null(const pointer_t *pointer)
Asserts that the pointer is null.
Definition: assert.h:2139
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:941
static void is_zero(const value_t &value)
Asserts that ta condition is zero.
Definition: assert.h:2547
static void are_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are equal.
Definition: assert.h:50
static void are_not_equal(const expected_t &expected, const actual_t &actual)
Asserts that two type are not equal.
Definition: assert.h:354
static void contains(const item_t &item, const collection_t &collection)
Asserts that collection contains an item.
Definition: assert.h:587
The assume class contains a collection of static methods that implement the most common assertions us...
Definition: assume.h:20
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:551
static void is_zero(const value_t &value)
Assumes that ta condition is zero.
Definition: assume.h:2606
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:465
static void is_not_null(std::nullptr_t pointer)
Assumes that the pointer is not null.
Definition: assume.h:2067
static void are_equal(float expected, float actual, float tolerance)
Assumes that two type are equal.
Definition: assume.h:161
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:1299
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition: assume.h:2101
static void is_NaN(long double value, const xtd::ustring &message)
Assumes that a value is NaN.
Definition: assume.h:1486
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:2024
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:2262
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:1958
static void are_equal(float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:175
static void are_same(const expected_t &expected, const actual_t &actual)
Assumes that two objects do refer to differents objects.
Definition: assume.h:519
static void is_positive(const value_t &value)
Assumes that ta condition is positive.
Definition: assume.h:2486
static void are_not_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are not equal.
Definition: assume.h:346
static void are_equal(float expected, float &actual, float tolerance, const xtd::ustring &message)
Assumes that two type are equal.
Definition: assume.h:189
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message)
Assumes that two type are equal.
Definition: assume.h:313
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:299
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:1211
static void throws_any(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
Definition: assume.h:2740
static void is_NaN(float value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
Definition: assume.h:1558
static void is_positive(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is positive.
Definition: assume.h:2500
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
Definition: assume.h:741
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:449
static void are_equal(float expected, float actual, float tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:204
static void is_not_null(const pointer_t *pointer)
Assumes that the pointer is not null.
Definition: assume.h:1817
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:1065
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:1682
static void is_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2310
static void is_zero(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is zero.
Definition: assume.h:2634
static void are_equal(double expected, double actual, double tolerance)
Assumes that two type are equal.
Definition: assume.h:223
static void is_NaN(double value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
Definition: assume.h:1415
static void does_not_throw(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
Definition: assume.h:704
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:1037
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:1327
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:1863
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:2649
static void is_NaN(float value, const xtd::ustring &message)
Assumes that a value is NaN.
Definition: assume.h:1544
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:601
static void is_NaN(float value)
that a value is NaN.
Definition: assume.h:1518
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:1140
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:1797
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:1783
static void is_null(const pointer_t *pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2213
static void is_NaN(double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
Definition: assume.h:1442
static void is_not_zero(const value_t &value)
Assumes that ta condition is not zero.
Definition: assume.h:2120
static void are_equal(long double expected, long double actual, long double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:328
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:1080
static void is_not_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is not null.
Definition: assume.h:2078
static void is_null(std::nullptr_t pointer)
Assumes that the pointer is null.
Definition: assume.h:2439
static void is_positive(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is positive.
Definition: assume.h:2514
static void is_not_zero(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is not zero.
Definition: assume.h:2148
static void is_true(bool condition)
Assumes that ta condition is true.
Definition: assume.h:2547
static void is_NaN(long double value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
Definition: assume.h:1473
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message)
Assumes that the staement does not throw an exception.
Definition: assume.h:2752
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:1153
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:1051
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:1620
static void are_equal(const expected_t &expected, const actual_t &actual)
Assumes that two type are equal.
Definition: assume.h:36
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:1987
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:2324
static void is_not_null(const pointer_t *pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition: assume.h:1847
static void is_true(bool condition, const xtd::ustring &message)
Assumes that a condition is true.
Definition: assume.h:2573
static void is_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2374
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:1972
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:359
static void is_NaN(double value, const xtd::ustring &message)
Assumes that a value is NaN.
Definition: assume.h:1428
static void are_equal(double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:237
static void is_null(std::nullptr_t pointer, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition: assume.h:2473
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:1653
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message)
Assumes that two type are equal.
Definition: assume.h:251
static void is_not_null(const std::shared_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1944
static void does_not_throw(const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
Definition: assume.h:716
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:2163
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:49
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:630
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:1910
static void is_NaN(long double value)
that a value is NaN.
Definition: assume.h:1460
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:1757
static void is_true(bool condition, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is true.
Definition: assume.h:2560
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:1896
static void is_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is null.
Definition: assume.h:2248
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:372
static void are_equal(long double expected, long double actual, long double tolerance)
Assumes that two type are equal.
Definition: assume.h:285
static void is_not_empty(const value_t &value, const xtd::ustring &message)
Assumes that collection does not contain any item.
Definition: assume.h:1667
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:2353
static void contains(const item_t &item, const collection_t &collection, const xtd::ustring &message)
Assumes that collection contains an item.
Definition: assume.h:615
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:1198
static void does_not_throw(const std::function< void()> &statement, const xtd::ustring &message)
Assumes that the staement does not throw an exception.
Definition: assume.h:728
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:386
static void is_null(const pointer_t *pointer)
Assumes that the pointer is null.
Definition: assume.h:2183
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:2529
static void is_empty(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that collection contains an item.
Definition: assume.h:774
static void is_negative(const value_t &value, const xtd::ustring &message)
Assumes that ta condition is negative.
Definition: assume.h:1605
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:1238
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:803
static void is_zero(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is zero.
Definition: assume.h:2620
static void throws_any(const std::function< void()> &statement)
Assumes that the staement does not throw an exception.
Definition: assume.h:2728
static void are_equal(double expected, double actual, double tolerance, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that two type are equal.
Definition: assume.h:266
static void is_null(const std::weak_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2406
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:76
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:1770
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:568
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:2390
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:481
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:1925
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:2291
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:1224
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:1180
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:1313
static void is_empty(const value_t &value, const xtd::ustring &message)
Assumes that collection contains an item.
Definition: assume.h:788
static void is_null(const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition: assume.h:2198
static void is_negative(const value_t &value)
Assumes that ta condition is negative.
Definition: assume.h:1577
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:2057
static void is_null(std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the pointer is null.
Definition: assume.h:2450
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:2229
static void is_NaN(long double value, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a value is NaN.
Definition: assume.h:1500
static void is_null(const std::shared_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2338
static void is_NaN(float value, const xtd::diagnostics::stack_frame &stack_frame)
that a value is NaN.
Definition: assume.h:1531
static void is_null(std::nullptr_t pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2461
static void is_not_null(std::nullptr_t pointer, const xtd::ustring &message)
Assumes that the pointer is not null.
Definition: assume.h:2089
static void is_NaN(double value)
that a value is NaN.
Definition: assume.h:1402
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:2423
static void throws_any(const std::function< void()> &statement, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that the staement does not throw an exception.
Definition: assume.h:2765
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:1832
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:2134
static void is_not_null(const std::unique_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:1882
static void is_not_empty(const value_t &value)
Assumes that collection oes not contain any item.
Definition: assume.h:1639
static void is_true(bool condition, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that a condition is true.
Definition: assume.h:2587
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:62
static void is_negative(const value_t &value, const xtd::diagnostics::stack_frame &stack_frame)
Assumes that ta condition is negative.
Definition: assume.h:1591
static void contains(const item_t &item, const collection_t &collection)
Assumes that collection contains an item.
Definition: assume.h:587
static void is_empty(const value_t &value)
Assumes that collection contains an item.
Definition: assume.h:760
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:498
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:1342
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:535
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:1166
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:2040
static void is_null(const std::unique_ptr< pointer_t > &pointer, const xtd::ustring &message)
Assumes that the pointer is null.
Definition: assume.h:2276
static void is_not_null(const std::weak_ptr< pointer_t > &pointer)
Assumes that the pointer is not null.
Definition: assume.h:2008
The base class for assert.
Definition: base_assert.h:25
static void abort()
Abort current test. This is used by the other Assert functions.
Definition: base_assert.h:36
static void succeed()
Generates a success with a generic message. This is used by the other Assert functions.
Definition: base_assert.h:140
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
#define csf_
Provides information about the current stack frame.
Definition: stack_frame.h:213
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17