|
| template<typename expected_t, typename actual_t> |
| static auto | are_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| template<typename expected_t, typename actual_t> |
| static auto | 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()) -> void |
| | Asserts that two type are equal.
|
| static auto | are_equal (float expected, float actual, float tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| static auto | are_equal (float expected, float actual, float tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| static auto | are_equal (double expected, double actual, double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| static auto | are_equal (double expected, double actual, double tolerance, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| static auto | are_equal (long double expected, long double actual, long double tolerance, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are equal.
|
| static auto | 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()) -> void |
| | Asserts that two type are equal.
|
| template<typename expected_t, typename actual_t> |
| static auto | are_not_equal (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two type are not equal.
|
| template<typename expected_t, typename actual_t> |
| static auto | 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()) -> void |
| | Asserts that two type are not equal.
|
| template<typename expected_t, typename actual_t> |
| static auto | are_not_same (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two objects do refer to differents objects.
|
| template<typename expected_t, typename actual_t> |
| static auto | 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()) -> void |
| | Asserts that two objects do refer to differents objects.
|
| template<typename expected_t, typename actual_t> |
| static auto | are_same (const expected_t &expected, const actual_t &actual, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that two objects do refer to differents objects.
|
| template<typename expected_t, typename actual_t> |
| static auto | 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()) -> void |
| | Asserts that two objects do refer to differents objects.
|
| template<typename item_t, typename collection_t> |
| static auto | contains (const item_t &item, const collection_t &collection, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that collection contains an item.
|
| template<typename item_t, typename collection_t> |
| static auto | 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()) -> void |
| | Asserts that collection contains an item.
|
| static auto | does_not_throw (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the staement does not throw an exception.
|
| static auto | does_not_throw (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the staement does not throw an exception.
|
| template<typename value_t> |
| static auto | is_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that collection contains an item.
|
| template<typename value_t> |
| static auto | is_empty (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that collection contains an item.
|
| static auto | is_false (bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a condition is false.
|
| static auto | is_false (bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a condition is false.
|
| template<typename value1_t, typename value2_t> |
| static auto | is_greater (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the first value is greater than the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | 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()) -> void |
| | Asserts that the first value is greater than the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | is_greater_or_equal (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the first value is greater than or equal to the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | 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()) -> void |
| | Asserts that the first value is greater than or equal to the second value.
|
| template<typename type_t, typename value_t> |
| static auto | is_instance_of (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that an object is of the type supplied or a derived type.
|
| template<typename type_t, typename value_t> |
| static auto | is_instance_of (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that an object is of the type supplied or a derived type.
|
| template<typename value1_t, typename value2_t> |
| static auto | is_less (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the first value is is_less than the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | 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()) -> void |
| | Asserts that the first value is is_less than the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | is_less_or_equal (const value1_t &val1, const value2_t &val2, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the first value is is_less than or equal to the second value.
|
| template<typename value1_t, typename value2_t> |
| static auto | 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()) -> void |
| | Asserts that the first value is is_less than or equal to the second value.
|
| static auto | is_NaN (double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | that a value is NaN.
|
| static auto | is_NaN (double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a value is NaN.
|
| static auto | is_NaN (long double value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | that a value is NaN.
|
| static auto | is_NaN (long double value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a value is NaN.
|
| static auto | is_NaN (float value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | that a value is NaN.
|
| static auto | is_NaN (float value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a value is NaN.
|
| template<typename value_t> |
| static auto | is_negative (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is negative.
|
| template<typename value_t> |
| static auto | is_negative (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is negative.
|
| template<typename value_t> |
| static auto | is_not_empty (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that collection does not contain any item.
|
| template<typename value_t> |
| static auto | is_not_empty (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that collection does not contain any item.
|
| template<typename type_t, typename value_t> |
| static auto | is_not_instance_of (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that an object is not of the type supplied or a derived type.
|
| template<typename type_t, typename value_t> |
| static auto | is_not_instance_of (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that an object is not of the type supplied or a derived type.
|
| template<typename pointer_t> |
| static auto | is_not_null (const pointer_t *pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const pointer_t *pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename optional_t> |
| static auto | is_not_null (const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the optional is not std::nullopt.
|
| template<typename optional_t> |
| static auto | 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()) -> void |
| | Asserts that the optional is not std::nullopt.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::uptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::uptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::sptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::sptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::wptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename pointer_t> |
| static auto | is_not_null (const xtd::wptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| static auto | is_not_null (std::nullptr_t pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| static auto | is_not_null (std::nullptr_t pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is not null.
|
| template<typename value_t> |
| static auto | is_not_zero (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is not zero.
|
| template<typename value_t> |
| static auto | is_not_zero (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is not zero.
|
| template<typename pointer_t> |
| static auto | is_null (const pointer_t *pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const pointer_t *pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename optional_t> |
| static auto | is_null (const std::optional< optional_t > &opt, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the optional is std::nullopt.
|
| template<typename optional_t> |
| static auto | is_null (const std::optional< optional_t > &opt, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the optional is std::nullopt.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::uptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::uptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::sptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::sptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::wptr< pointer_t > &pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename pointer_t> |
| static auto | is_null (const xtd::wptr< pointer_t > &pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| static auto | is_null (std::nullptr_t pointerpointer, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| static auto | is_null (std::nullptr_t pointerpointer, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the pointer is null.
|
| template<typename value_t> |
| static auto | is_positive (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is positive.
|
| template<typename value_t> |
| static auto | is_positive (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is positive.
|
| static auto | is_true (bool condition, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a condition is true.
|
| static auto | is_true (bool condition, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that a condition is true.
|
| template<typename value_t> |
| static auto | is_zero (const value_t &value, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is zero.
|
| template<typename value_t> |
| static auto | is_zero (const value_t &value, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that ta condition is zero.
|
| template<typename exception_t> |
| static auto | throws (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the statement throws a particular exception when called.
|
| template<typename exception_t> |
| static auto | throws (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the statement throws a particular exception when called.
|
| static auto | throws_any (const std::function< void()> &statement, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the staement does not throw an exception.
|
| static auto | throws_any (const std::function< void()> &statement, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Asserts that the staement does not throw an exception.
|
|
| static auto | abort (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Abort current test. This is used by the other assert functions.
|
| static auto | abort (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Abort current test. This is used by the other assert functions.
|
| static auto | fail (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| static auto | fail (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| static auto | ignore (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Ignore current test. This is used by the other assert functions.
|
| static auto | ignore (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Ignore current test. This is used by the other assert functions.
|
| static auto | succeed (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Generates a success with a generic message. This is used by the other assert functions.
|
| static auto | succeed (const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) -> void |
| | Generates a success with a generic message. This is used by the other assert functions.
|
| static auto | error () -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| static auto | error (const xtd::string &message) -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| static auto | 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()) -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| static auto | 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()) -> void |
| | Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
|
| template<typename value_t> |
| static auto | to_string (const value_t &value) -> xtd::string |
| | Convert specified value to xtd::string.
|
| template<typename value_t> |
| static auto | to_string (const value_t *value) -> xtd::string |
| | Convert specified value to xtd::string.
|
| template<typename collection_t> |
| static auto | join_items (const collection_t &collection) -> xtd::string |
| | Join specified collection into xtd::string.
|
| static auto | join_items (const xtd::string &str) -> xtd::string |
| | Join specified string into xtd::string.
|
| template<typename value_a_t, typename value_b_t> |
| static auto | equals (const value_a_t &value_a, const value_b_t &value_b) -> bool |
| | Determines if specified values are equal.
|
| template<typename char_t> |
| static auto | equals (const char_t *value_a, const string &value_b) -> bool |
| | Determines if specified values are equal.
|
| template<typename char_t> |
| static auto | equals (const string &value_a, const char_t *value_b) -> bool |
| | Determines if specified values are equal.
|
| static auto | equals (long double value_a, long double value_b) -> bool |
| | Determines if specified values are equal.
|
| static auto | equals (double value_a, double value_b) -> bool |
| | Determines if specified values are equal.
|
| static auto | equals (float value_a, float value_b) -> bool |
| | Determines if specified values are equal.
|
| static auto | equals (double value_a, double value_b, double tolerance) -> bool |
| | Determines if specified values are equal with tolerance.
|
| static auto | equals (long double value_a, long double value_b, long double tolerance) -> bool |
| | Determines if specified values are equal with tolerance.
|
| static auto | equals (float value_a, float value_b, float tolerance) -> bool |
| | Determines if specified values are equal with tolerance.
|