xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <string_assert.h>
The string_assert 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) |
Asserts that two type are equal ignoring case. More... | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that two type are equal ignoring case. More... | |
static void | are_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message) |
Asserts that two type are equal ignoring case. More... | |
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) |
Asserts that two type are equal ignoring case. More... | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual) |
Asserts that two type are not equal ignoring case. More... | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that two type are not equal ignoring case. More... | |
static void | are_not_equal_ignoring_case (const xtd::ustring &expected, const xtd::ustring &actual, const xtd::ustring &message) |
Asserts that two type are not equal ignoring case. More... | |
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) |
Asserts that two type are not equal ignoring case. More... | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string contains an item. More... | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string contains an item. More... | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string contains an item. More... | |
static void | contains (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string contains an item. More... | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string contains an item. More... | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string contains an item. More... | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string contains an item. More... | |
static void | does_not_contain (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string contains an item. More... | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string does not end with a specific item. More... | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
static void | does_not_end_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string starts with item. More... | |
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) |
Asserts that string starts with item. More... | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual) |
Asserts that does not match regex pattern. More... | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that does not match regex pattern. More... | |
static void | does_not_match (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message) |
Asserts that does not match regex pattern. More... | |
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) |
Asserts that does not match regex pattern. More... | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string does not start with a specific item. More... | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
static void | does_not_start_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string starts with item. More... | |
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) |
Asserts that string starts with item. More... | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string ends with a specific item. More... | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string starts with item. More... | |
static void | ends_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual) |
Asserts that matches regex pattern. More... | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that matches regex pattern. More... | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message) |
Asserts that matches regex pattern. More... | |
static void | matches (const xtd::ustring ®ex_pattern, const xtd::ustring &actual, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that matches regex pattern. More... | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string) |
Asserts that string starts witdh item. More... | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message) |
Asserts that string starts with item. More... | |
static void | starts_with (const xtd::ustring &item, const xtd::ustring &string, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame) |
Asserts that string starts with item. More... | |
|
inlinestatic |
Asserts that two type are equal ignoring case.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that two type are not equal ignoring case.
expected | the expected value. |
actual | the actual value. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string contains an item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string contains an item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string does not end with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that does not match regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string does not start with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string ends with a specific item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that matches regex pattern.
regex_pattern | the regex pattern. |
actual | the actual value. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts that string starts witdh item.
item | object to verify. |
collection | that contains object. |
xtd::tunit::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |
|
inlinestatic |
Asserts 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::assertion_error | If bad assertion. |