xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <string_assume.h>
The string_assume class contains a collection of static methods that implement the most string assertions used in xtd::tUnit.
Inherits xtd::tunit::base_assert.
Static Public Member Functions | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual) |
Validates that two type are equal ignoring case. | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that two type are equal ignoring case. | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message) |
Validates that two type are equal ignoring case. | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that two type are equal ignoring case. | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual) |
Validates that two type are not equal ignoring case. | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that two type are not equal ignoring case. | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message) |
Validates that two type are not equal ignoring case. | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that two type are not equal ignoring case. | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string contains an item. | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string contains an item. | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string contains an item. | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string contains an item. | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string contains an item. | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string contains an item. | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string contains an item. | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string contains an item. | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string does not end with a specific item. | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string starts with item. | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual) |
Validates that does not match regex pattern. | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that does not match regex pattern. | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message) |
Validates that does not match regex pattern. | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that does not match regex pattern. | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string does not start with a specific item. | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string starts with item. | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string ends with a specific item. | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string starts with item. | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual) |
Validates that matches regex pattern. | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that matches regex pattern. | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message) |
Validates that matches regex pattern. | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that matches regex pattern. | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string) |
Validates that string starts with a specific item. | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Validates that string starts with item. | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Validates that string starts with item. | |
|
inlinestatic |
Validates that two type are equal ignoring case.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are equal ignoring case.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are equal ignoring case.
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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are equal ignoring case.
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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are not equal ignoring case.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are not equal ignoring case.
expected | the expected value. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are not equal ignoring case.
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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that two type are not equal ignoring case.
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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string contains an item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string contains an item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string 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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string contains an item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string contains an item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string 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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string does not end with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that does not match regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that does not match regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that does not match regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that does not match regex pattern.
regex_pattern | the regex pattern. |
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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string does not start with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string ends with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that matches regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that matches regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that matches regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that matches regex pattern.
regex_pattern | the regex pattern. |
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::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with item.
item | object to verify. |
collection | that contains object. |
stack_frame | Contains information about current file and current line. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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. |
xtd::tunit::abort_error | If bad assertion. |
|
inlinestatic |
Validates that string starts with 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::abort_error | If bad assertion. |