xtd 0.2.0
Loading...
Searching...
No Matches
assert_type.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace xtd {
10 namespace tunit {
12 namespace constraints {
13 enum class assert_type {
14 assert,
15 valid,
16 assume
17 };
18 }
19 }
20}
21
23template<> struct xtd::enum_register<xtd::tunit::constraints::assert_type> {
24 explicit operator auto() const 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};
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
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
Provides the registration struct for enumerations.
Definition enum_register.hpp:38