|
|
| actual_value (actual_value &&)=default |
| |
|
| actual_value (const actual_value &)=default |
| |
|
xtd::tunit::constraints::assert_type | assert_type () const noexcept |
| |
|
actual_value & | type (xtd::tunit::constraints::assert_type assert_type) noexcept |
| |
|
auto | is_assert () const noexcept |
| |
|
auto | is_valid () const noexcept |
| |
|
auto | is_assume () const noexcept |
| |
|
const actual_t & | actual () const noexcept |
| |
|
actual_value & | actual (const actual_t &actual) noexcept |
| |
◆ end_with() [1/2]
template<class actual_t>
template<class item_t>
Asserts that string ends with specified item.
- Parameters
-
| item | object to verify. |
| stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
xtd::tunit::constraints::assert_that(
s).does().end_with(
"val");
xtd::tunit::constraints::assert_that(
s).does().end_with(
"law");
@ s
The S key.
Definition console_key.hpp:124
◆ end_with() [2/2]
template<class actual_t>
template<class item_t>
Asserts that string ends with specified item and specified user message.
- Parameters
-
| item | object to verify. |
| 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
xtd::tunit::constraints::assert_that(
s).does().end_with(
"val",
"User message...");
xtd::tunit::constraints::assert_that(
s).does().end_with(
"law",
"User message...");
◆ start_with() [1/2]
template<class actual_t>
template<class item_t>
Asserts that string starts with specified item.
- Parameters
-
| item | object to verify. |
| stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
xtd::tunit::constraints::assert_that(
s).does().start_with(
"val");
xtd::tunit::constraints::assert_that(
s).does().start_with(
"zoe");
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
◆ start_with() [2/2]
template<class actual_t>
template<class item_t>
Asserts that string starts with specified item and specified user message.
- Parameters
-
| item | object to verify. |
| 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
xtd::tunit::constraints::assert_that(
s).does().start_with(
"val",
"User message...");
xtd::tunit::constraints::assert_that(
s).does().start_with(
"zoe",
"User message...");
The documentation for this class was generated from the following file: