xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.tunit
include
xtd
tunit
constraints
that_value.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
actual_value.hpp
"
6
#include "
does_value.hpp
"
7
#include "
is_value.hpp
"
8
10
namespace
xtd
{
12
namespace
tunit
{
14
namespace
constraints
{
16
class
assert_value
;
17
template
<
typename
actual_t>
class
operator_value
;
19
20
template
<
typename
actual_t>
21
class
that_value :
public
actual_value<actual_t> {
22
public
:
24
26
[[nodiscard]]
auto
does() {
return
does_value<actual_t>
(
self_
);}
27
[[nodiscard]]
auto
is() {
return
is_value<actual_t>
(
self_
);}
29
30
protected
:
32
34
that_value() =
default
;
35
that_value(actual_value<actual_t>&&
v
) : actual_value<actual_t> {std::move(
v
)} {}
36
that_value(
const
actual_value<actual_t>&
v
) : actual_value<actual_t> {
v
} {}
38
39
private
:
40
friend
class
assert_value;
41
template
<
typename
value_t>
friend
class
operator_value;
42
};
43
}
44
}
45
}
actual_value.hpp
Contains xtd::tunit::constraints::actual_value class.
xtd::tunit::constraints::assert_value
Definition
assert_value.hpp:13
xtd::tunit::constraints::does_value
Definition
does_value.hpp:27
xtd::tunit::constraints::is_value
Definition
is_value.hpp:28
xtd::tunit::constraints::operator_value
Definition
operator_value.hpp:21
does_value.hpp
Contains xtd::tunit::constraints::does_value class.
self_
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition
self.hpp:20
xtd::console_key::v
@ v
The V key.
Definition
console_key.hpp:130
is_value.hpp
Contains xtd::tunit::constraints::is_value class.
xtd::tunit::constraints
The constraints namespace contains the constraint-based assert model.
Definition
actual_value.hpp:12
xtd::tunit
The tunit namespace contains a unit test library.
Definition
abort_error.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.