xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.tunit
include
xtd
tunit
constraints
assert_type.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
tunit
{
12
namespace
constraints
{
13
enum class
assert_type {
14
assert,
15
valid,
16
assume
17
};
18
}
19
}
20
}
21
23
template
<>
struct
xtd::enum_register
<
xtd
::tunit::constraints::assert_type> {
24
static
auto
values
() noexcept {
return
xtd::enum_collection<xtd::tunit::constraints::assert_type>
{{xtd::tunit::constraints::assert_type::assert,
"assert"
}, {xtd::tunit::constraints::assert_type::valid,
"valid"
}, {xtd::tunit::constraints::assert_type::assume,
"assume"
}};}
25
};
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
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
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.