◆ abort() [1/2]
Abort current test. This is used by the other assert functions.
- Parameters
-
stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
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.
- Examples
- math_assume.cpp.
◆ abort() [2/2]
Abort current test. This is used by the other assert functions.
- Parameters
-
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. |
- Examples
-
◆ fail() [1/3]
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
- Parameters
-
stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
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.
- Examples
- math_assert.cpp, math_assume.cpp, and math_valid.cpp.
◆ fail() [2/3]
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
- Parameters
-
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. |
- Exceptions
-
- Examples
-
◆ ignore() [1/2]
Ignore current test. This is used by the other assert functions.
- Parameters
-
stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
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.
◆ ignore() [2/2]
Ignore current test. This is used by the other assert functions.
- Parameters
-
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. |
- Examples
-
◆ succeed() [1/2]
Generates a success with a generic message. This is used by the other assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Examples
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.
- Examples
- math_assert.cpp, math_assume.cpp, and math_valid.cpp.
◆ succeed() [2/2]
Generates a success with a generic message. This is used by the other assert functions.
- Parameters
-
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. |
- Examples
-
◆ error() [1/3]
static void xtd::tunit::base_assert::error |
( |
| ) |
|
|
staticprotected |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
- Exceptions
-
- Examples
static void error()
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
- Examples
- math_valid.cpp.
◆ error() [2/3]
static void xtd::tunit::base_assert::error |
( |
const xtd::string & |
message | ) |
|
|
staticprotected |
◆ error() [3/3]
◆ fail() [3/3]
◆ to_string() [1/2]
template<typename value_t >
static xtd::string xtd::tunit::base_assert::to_string |
( |
const value_t & |
value | ) |
|
|
inlinestaticprotected |
◆ to_string() [2/2]
template<typename value_t >
static xtd::string xtd::tunit::base_assert::to_string |
( |
const value_t * |
value | ) |
|
|
inlinestaticprotected |
◆ join_items() [1/2]
template<typename collection_t >
static xtd::string xtd::tunit::base_assert::join_items |
( |
const collection_t & |
collection | ) |
|
|
inlinestaticprotected |
Join specified collection into xtd::string.
- Parameters
-
- Returns
- The xtd::string that contains the joined collection.
◆ join_items() [2/2]
The documentation for this class was generated from the following file: