xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.tunit
include
xtd
tunit
constraints
assert_value.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
that_value.hpp
"
6
8
namespace
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
<
typename
actual_t>
25
[[nodiscard]]
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
}
xtd::tunit::constraints::actual_value
Definition
actual_value.hpp:18
xtd::tunit::constraints::that_value
Definition
that_value.hpp:21
xtd::type
std::type_info type
Stores information about a type.
Definition
type.hpp:23
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
that_value.hpp
Contains xtd::tunit::constraints::that_value class.
Generated on
for xtd by
Gammasoft
. All rights reserved.