The assert class contains a collection of static methods that implement the most common assertions used in xtd::tUnit.
Public Static Methods | |
| template<class expected_t, class actual_t> | |
| static void | are_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| template<class expected_t, class actual_t> | |
| static void | are_equal (const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (float expected, float actual, float tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (double expected, double actual, double tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (long double expected, long double actual, long double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| static void | are_equal (long double expected, long double actual, long double tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are equal. | |
| template<class expected_t, class actual_t> | |
| static void | are_not_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are not equal. | |
| template<class expected_t, class actual_t> | |
| static void | are_not_equal (const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two type are not equal. | |
| template<class expected_t, class actual_t> | |
| static void | are_not_same (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two objects do refer to differents objects. | |
| template<class expected_t, class actual_t> | |
| static void | are_not_same (const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two objects do refer to differents objects. | |
| template<class expected_t, class actual_t> | |
| static void | are_same (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two objects do refer to differents objects. | |
| template<class expected_t, class actual_t> | |
| static void | are_same (const expected_t &expected, const actual_t &actual, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that two objects do refer to differents objects. | |
| template<class item_t, class collection_t> | |
| static void | contains (const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection contains an item. | |
| template<class item_t, class collection_t> | |
| static void | contains (const item_t &item, const collection_t &collection, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection contains an item. | |
| static void | does_not_throw (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the staement does not throw an exception. | |
| static void | does_not_throw (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the staement does not throw an exception. | |
| template<class value_t> | |
| static void | is_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection contains an item. | |
| template<class value_t> | |
| static void | is_empty (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection contains an item. | |
| static void | is_false (bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Asserts that a condition is false. | |
| static void | is_false (bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Asserts that a condition is false. | |
| template<class value1_t, class value2_t> | |
| static void | is_greater (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is greater than the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_greater (const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is greater than the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_greater_or_equal (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is greater than or equal to the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_greater_or_equal (const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is greater than or equal to the second value. | |
| template<class type_t, class value_t> | |
| static void | is_instance_of (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that an object is of the type supplied or a derived type. | |
| template<class type_t, class value_t> | |
| static void | is_instance_of (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that an object is of the type supplied or a derived type. | |
| template<class value1_t, class value2_t> | |
| static void | is_less (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is is_less than the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_less (const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is is_less than the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_less_or_equal (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is is_less than or equal to the second value. | |
| template<class value1_t, class value2_t> | |
| static void | is_less_or_equal (const value1_t &val1, const value2_t &val2, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the first value is is_less than or equal to the second value. | |
| static void | is_NaN (double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| that a value is NaN. | |
| static void | is_NaN (double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that a value is NaN. | |
| static void | is_NaN (long double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| that a value is NaN. | |
| static void | is_NaN (long double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that a value is NaN. | |
| static void | is_NaN (float value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| that a value is NaN. | |
| static void | is_NaN (float value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that a value is NaN. | |
| template<class value_t> | |
| static void | is_negative (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is negative. | |
| template<class value_t> | |
| static void | is_negative (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is negative. | |
| template<class value_t> | |
| static void | is_not_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection does not contain any item. | |
| template<class value_t> | |
| static void | is_not_empty (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that collection does not contain any item. | |
| template<class type_t, class value_t> | |
| static void | is_not_instance_of (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that an object is not of the type supplied or a derived type. | |
| template<class type_t, class value_t> | |
| static void | is_not_instance_of (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that an object is not of the type supplied or a derived type. | |
| template<class pointer_t> | |
| static void | is_not_null (const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const pointer_t *pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class optional_t> | |
| static void | is_not_null (const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the optional is not std::nullopt. | |
| template<class optional_t> | |
| static void | is_not_null (const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the optional is not std::nullopt. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::uptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::sptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class pointer_t> | |
| static void | is_not_null (const xtd::wptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| static void | is_not_null (std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| static void | is_not_null (std::nullptr_t pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is not null. | |
| template<class value_t> | |
| static void | is_not_zero (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is not zero. | |
| template<class value_t> | |
| static void | is_not_zero (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is not zero. | |
| template<class pointer_t> | |
| static void | is_null (const pointer_t *pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const pointer_t *pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class optional_t> | |
| static void | is_null (const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the optional is std::nullopt. | |
| template<class optional_t> | |
| static void | is_null (const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the optional is std::nullopt. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::uptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::uptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::sptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::sptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::wptr< pointer_t > &pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class pointer_t> | |
| static void | is_null (const xtd::wptr< pointer_t > &pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| static void | is_null (std::nullptr_t pointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| static void | is_null (std::nullptr_t pointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the pointer is null. | |
| template<class value_t> | |
| static void | is_positive (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is positive. | |
| template<class value_t> | |
| static void | is_positive (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is positive. | |
| static void | is_true (bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Asserts that a condition is true. | |
| static void | is_true (bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Asserts that a condition is true. | |
| template<class value_t> | |
| static void | is_zero (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is zero. | |
| template<class value_t> | |
| static void | is_zero (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that ta condition is zero. | |
| template<class exception_t> | |
| static void | throws (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the statement throws a particular exception when called. | |
| template<class exception_t> | |
| static void | throws (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the statement throws a particular exception when called. | |
| static void | throws_any (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the staement does not throw an exception. | |
| static void | throws_any (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Asserts that the staement does not throw an exception. | |
Additional Inherited Members | |
| static void | abort (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Abort current test. This is used by the other assert functions. | |
| static void | abort (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Abort current test. This is used by the other assert functions. | |
| static void | fail (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| static void | fail (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| static void | ignore (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Ignore current test. This is used by the other assert functions. | |
| static void | ignore (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Ignore current test. This is used by the other assert functions. | |
| static void | succeed (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Generates a success with a generic message. This is used by the other assert functions. | |
| static void | succeed (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Generates a success with a generic message. This is used by the other assert functions. | |
| static void | error () |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| static void | error (const xtd::string &message) |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| static void | error (const xtd::string &actual, const xtd::string &expected, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| static void | fail (const xtd::string &actual, const xtd::string &expected, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
| Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
| template<class value_t> | |
| static xtd::string | to_string (const value_t &value) |
| Convert specified value to xtd::string. | |
| template<class value_t> | |
| static xtd::string | to_string (const value_t *value) |
| Convert specified value to xtd::string. | |
| template<class collection_t> | |
| static xtd::string | join_items (const collection_t &collection) |
| Join specified collection into xtd::string. | |
| static xtd::string | join_items (const xtd::string &str) |
| Join specified string into xtd::string. | |
| template<class value_a_t, class value_b_t> | |
| static bool | equals (const value_a_t &value_a, const value_b_t &value_b) |
| Determines if specified values are equal. | |
| template<class char_t> | |
| static bool | equals (const char_t *value_a, const string &value_b) |
| Determines if specified values are equal. | |
| template<class char_t> | |
| static bool | equals (const string &value_a, const char_t *value_b) |
| Determines if specified values are equal. | |
| static bool | equals (long double value_a, long double value_b) |
| Determines if specified values are equal. | |
| static bool | equals (double value_a, double value_b) |
| Determines if specified values are equal. | |
| static bool | equals (float value_a, float value_b) |
| Determines if specified values are equal. | |
| static bool | equals (double value_a, double value_b, double tolerance) |
| Determines if specified values are equal with tolerance. | |
| static bool | equals (long double value_a, long double value_b, long double tolerance) |
| Determines if specified values are equal with tolerance. | |
| static bool | equals (float value_a, float value_b, float tolerance) |
| Determines if specified values are equal with tolerance. | |
|
inlinestatic |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001f repsesent 0.01%. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001f repsesent 0.01%. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001 repsesent 0.01%. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001 repsesent 0.01%. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001l repsesent 0.01%. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that two type are equal.
| expected | the expected value. |
| actual | the actual value. |
| tolerance | Indicates a tolerance within which they will be considered as equal in percent. For example 0.0001l repsesent 0.01%. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two type are not equal.
| expected | the expected value. |
| actual | the actual value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two type are not equal.
| expected | the expected value. |
| actual | the actual value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two objects do refer to differents objects.
| expected | the expected value. |
| actual | the actual value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two objects do refer to differents objects.
| expected | the expected value. |
| actual | the actual value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two objects do refer to differents objects.
| expected | the expected value. |
| actual | the actual value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that two objects do refer to differents objects.
| expected | the expected value. |
| actual | the actual value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection contains an item.
| item | object to verify. |
| collection | that contains object. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection contains an item.
| item | object to verify. |
| collection | that contains object. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that the staement does not throw an exception.
| statement | The statement that verify. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that the staement does not throw an exception.
| statement | The statement that verify. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection contains an item.
| value | The value to check is empty. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection contains an item.
| value | The value to check is empty. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a condition is false.
| condition | The condition to check is false. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a condition is false.
| condition | The condition to check is false. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is greater than the second value.
| val1 | the first value. |
| val2 | the second value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is greater than the second value.
| val1 | the first value. |
| val2 | the second value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is greater than or equal to the second value.
| val1 | the first value. |
| val2 | the second value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is greater than or equal to the second value.
| val1 | the first value. |
| val2 | the second value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that an object is of the type supplied or a derived type.
| value | The object to verify |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that an object is of the type supplied or a derived type.
| value | The object to verify |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is is_less than the second value.
| val1 | the first value. |
| val2 | the second value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is is_less than the second value.
| val1 | the first value. |
| val2 | the second value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is is_less than or equal to the second value.
| val1 | the first value. |
| val2 | the second value. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the first value is is_less than or equal to the second value.
| val1 | the first value. |
| val2 | the second value. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
that a value is NaN.
| value | The value to check is NaN. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a value is NaN.
| value | The value to check is NaN. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
that a value is NaN.
| value | The value to check is NaN. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a value is NaN.
| value | The value to check is NaN. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
that a value is NaN.
| value | The value to check is NaN. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a value is NaN.
| value | The value to check is NaN. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is negative.
| value | The value to check is negative. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is negative.
| value | The value to check is negative. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection does not contain any item.
| value | The value to check is empty. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that collection does not contain any item.
| value | The value to check is empty. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that an object is not of the type supplied or a derived type.
| value | The object to verify |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that an object is not of the type supplied or a derived type.
| value | The object to verify |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the optional is not std::nullopt.
| opt | The optional to check is std::nullopt. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the optional is not std::nullopt.
| opt | The optional to check is std::nullopt. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
|
inlinestatic |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
|
static |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
false, a std::nullptr_t is always equal to nullptr.
|
static |
Asserts that the pointer is not null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
false, a std::nullptr_t is always equal to nullptr.
|
inlinestatic |
Asserts that ta condition is not zero.
| value | The value to check is not zero. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is not zero.
| value | The value to check is not zero. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the optional is std::nullopt.
| opt | The optional to check is std::nullopt. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the optional is std::nullopt.
| opt | The optional to check is std::nullopt. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
false, a weaptr can't be equal to nullptr by contruction or assignation.
|
inlinestatic |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
false, a weaptr can't be equal to nullptr by contruction or assignation.
|
static |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
false, a std::nullptr_t is always equal to nullptr.
|
static |
Asserts that the pointer is null.
| pointer | The pointer to check is null. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
false, a std::nullptr_t is always equal to nullptr.
|
inlinestatic |
Asserts that ta condition is positive.
| value | The value to check is positive. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is positive.
| value | The value to check is positive. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a condition is true.
| condition | The condition to check is true. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that a condition is true.
| condition | The condition to check is true. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is zero.
| value | The value to check is zero. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that ta condition is zero.
| value | The value to check is zero. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the statement throws a particular exception when called.
| exception_t | The exception type that must be throw. |
| statement | The statement that verify. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
inlinestatic |
Asserts that the statement throws a particular exception when called.
| exception_t | The exception type that must be throw. |
| statement | The statement that verify. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that the staement does not throw an exception.
| statement | The statement that verify. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |
|
static |
Asserts that the staement does not throw an exception.
| statement | The statement that verify. |
| message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
| stack_frame | Contains information about current file and current line. |
| xtd::tunit::assert_error | If bad assertion. |