xtd 0.2.0
Loading...
Searching...
No Matches
assert_value.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "that_value.hpp"
6
8namespace xtd {
10 namespace tunit {
12 namespace constraints {
13 class assert_value {
14 public:
16
18 assert_value(const assert_type& type) : type_ {type} {}
20
22
24 template<class actual_t>
25 inline auto that(const actual_t& actual) {return that_value<actual_t> {actual_value<actual_t> {}.type(type_).actual(actual)};}
27
28 private:
29 const assert_type& type_;
30 };
31 }
32 }
33}
Definition actual_value.hpp:18
Definition that_value.hpp:21
std::type_info type
Stores information about a type.
Definition type.hpp:23
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
Contains xtd::tunit::constraints::that_value class.