xtd 0.2.0
Loading...
Searching...
No Matches
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
10namespace xtd {
12 namespace tunit {
14 namespace constraints {
16 class assert_value;
17 template<class actual_t> class operator_value;
19
20 template<class actual_t>
21 class that_value : public actual_value<actual_t> {
22 public:
24
26 inline auto does() {return does_value<actual_t>(self_);}
27 inline 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<class value_t> friend class operator_value;
42 };
43 }
44 }
45}
Contains xtd::tunit::constraints::actual_value class.
Definition assert_value.hpp:13
Definition does_value.hpp:27
Definition is_value.hpp:28
Definition operator_value.hpp:21
Contains xtd::tunit::constraints::does_value class.
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition self.hpp:20
@ v
The V key.
Definition console_key.hpp:130
Contains xtd::tunit::constraints::is_value class.
The constraints namespace contains the constraint-based assert model.
Definition actual_value.hpp:12
The tunit namespace contains a unit test library.
Definition abort_error.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8