The base class for assert.
Public Static Methods | |
static void | abort () |
Abort current test. This is used by the other assert functions. | |
static void | abort (const xtd::diagnostics::stack_frame &stack_frame) |
Abort current test. This is used by the other assert functions. | |
static void | abort (const xtd::ustring &message) |
Abort current test. This is used by the other assert functions. | |
static void | abort (const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Abort current test. This is used by the other assert functions. | |
static void | fail () |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | fail (const xtd::diagnostics::stack_frame &stack_frame) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | fail (const xtd::ustring &message) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | fail (const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | ignore () |
Ignore current test. This is used by the other assert functions. | |
static void | ignore (const xtd::diagnostics::stack_frame &stack_frame) |
Ignore current test. This is used by the other assert functions. | |
static void | ignore (const xtd::ustring &message) |
Ignore current test. This is used by the other assert functions. | |
static void | ignore (const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Ignore current test. This is used by the other assert functions. | |
static void | succeed () |
Generates a success with a generic message. This is used by the other assert functions. | |
static void | succeed (const xtd::diagnostics::stack_frame &stack_frame) |
Generates a success with a generic message. This is used by the other assert functions. | |
static void | succeed (const xtd::ustring &message) |
Generates a success with a generic message. This is used by the other assert functions. | |
static void | succeed (const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Generates a success with a generic message. This is used by the other assert functions. | |
Protected Methods | |
static void | error () |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | error (const xtd::ustring &message) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | error (const xtd::ustring &actual, const xtd::ustring &expected, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
static void | fail (const xtd::ustring &actual, const xtd::ustring &expected, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions. | |
template<typename value_t > | |
static xtd::ustring | to_string (const value_t &value) |
Convert specified value to xtd::ustring. | |
template<typename value_t > | |
static xtd::ustring | to_string (const value_t *value) |
Convert specified value to xtd::ustring. | |
template<typename collection_t > | |
static xtd::ustring | join_items (const collection_t &collection) |
Join specified collection into xtd::ustring. | |
static xtd::ustring | join_items (const xtd::ustring &str) |
Join specified string into xtd::ustring. | |
|
static |
Abort current test. This is used by the other assert functions.
|
static |
Abort current test. This is used by the other assert functions.
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Abort current test. This is used by the other assert functions.
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
static |
Abort current test. This is used by the other assert functions.
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. |
|
staticprotected |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
xtd::tunit::assert_error | If bad assertion. |
|
staticprotected |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
xtd::tunit::assert_error | If bad assertion. |
|
staticprotected |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
xtd::tunit::assert_error | If bad assertion. |
|
static |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
xtd::tunit::assert_error | If bad assertion. |
|
static |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
staticprotected |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
xtd::tunit::assert_error | If bad assertion. |
|
static |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Throws an xtd::tunit::assert_error exception. This is used by the other assert functions.
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 |
Ignore current test. This is used by the other assert functions.
|
static |
Ignore current test. This is used by the other assert functions.
stack_frame | Contains information about current file and current line. |
xtd::tunit::assert_error | If bad assertion. |
|
static |
Ignore current test. This is used by the other assert functions.
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
static |
Ignore current test. This is used by the other assert functions.
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. |
|
inlinestaticprotected |
Join specified collection into xtd::ustring.
collection | The collection to join into xtd::ustring. |
|
staticprotected |
Join specified string into xtd::ustring.
str | The joined to join into xtd::ustring. |
|
static |
Generates a success with a generic message. This is used by the other assert functions.
|
static |
Generates a success with a generic message. This is used by the other assert functions.
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
static |
Generates a success with a generic message. This is used by the other assert functions.
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
|
static |
Generates a success with a generic message. This is used by the other assert functions.
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. |
|
inlinestaticprotected |
Convert specified value to xtd::ustring.
value | The value to convert to xtd::ustring. |
|
inlinestaticprotected |
Convert specified value to xtd::ustring.
value | The value to convert to xtd::ustring. |