|
|
| 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 |
| |
◆ empty() [1/2]
Asserts that value is empty.
- Parameters
-
| stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
valid_that(v1).is().empty();
assert_that(v2).is().empty();
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
◆ empty() [2/2]
Asserts that value is empty and specified user message.
- 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
valid_that(v1).is().empty("User message...");
assert_that(v2).is().empty("User message...");
◆ equal_to() [1/2]
template<class actual_t>
template<class expected_t>
Asserts that value is equal to specified expected.
- Parameters
-
| expected | the expected value. |
| stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
auto value = 24;
valid_that(value).is().equal_to(24);
assert_that(value).is().equal_to(23);
◆ equal_to() [2/2]
template<class actual_t>
template<class expected_t>
Asserts that value is equal to specified expected with specified user message.
- Parameters
-
| expected | the expected 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. |
- Exceptions
-
- Examples
auto value = 24;
valid_that(value).is().equal_to(24 "User message...");
assert_that(value).is().equal_to(23, "User message...");
◆ same_as() [1/2]
template<class actual_t>
template<class expected_t>
Asserts that value is same as specified expected.
- Parameters
-
| expected | the expected value. |
| stack_frame | Contains information about current file and current line. |
- Exceptions
-
- Examples
valid_that(
a).is().same_as(
b);
assert_that(
a).is().same_as(
c);
@ a
The A key.
Definition console_key.hpp:88
@ c
The C key.
Definition console_key.hpp:92
@ b
The B key.
Definition console_key.hpp:90
◆ same_as() [2/2]
template<class actual_t>
template<class expected_t>
Asserts that value is same as specified expected with specified user message.
- Parameters
-
| expected | the expected 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. |
- Exceptions
-
- Examples
valid_that(
a).is().same_as(
b "User message...");
assert_that(
a).is().same_as(
c,
"User message...");
The documentation for this class was generated from the following file: