#include <test_method_attribute.h>
Represents a test method attribute.
- Namespace
- xtd::tunit
- Library
- xtd.tunit
- Examples
- The following example shows how to use xtd::tunit::test_method_attribute class.
#include <xtd/xtd.tunit>
namespace unit_tests {
public:
static void class_initialize() {
}
static void class_cleanup() {
}
static void test_initialize() {
}
static void test_cleanup() {
}
void test_case1() {
}
void test_case2() {
}
void test_case3() {
}
};
}
auto main()->int {
}
- Examples:
- test_class_without_helpers.cpp.
|
template<typename test_class_t > |
| test_method_attribute (const std::string &name, test_class_t &test_class, void(test_class_t::*method)()) noexcept |
| Creates a new instance of test_method_attribute with specified name, test_class, and method. More...
|
|
template<typename test_class_t > |
| test_method_attribute (const std::string &name, test_class_t &test_class, void(test_class_t::*method)(), const xtd::diagnostics::stack_frame &stack_frame) noexcept |
| Creates a new instance of test_method_attribute with specified name, test_class, method, and stack frame. More...
|
|
template<typename test_class_t > |
| test_method_attribute (const std::string &name, test_class_t &test_class, void(test_class_t::*method)(), xtd::tunit::test_state test_state) noexcept |
| Creates a new instance of test_method_attribute with specified name, test_class, method, and tes state. More...
|
|
template<typename test_class_t > |
| test_method_attribute (const std::string &name, test_class_t &test_class, void(test_class_t::*method)(), xtd::tunit::test_state test_state, const xtd::diagnostics::stack_frame &stack_frame) noexcept |
| Creates a new instance of test_method_attribute with specified name, test_class, method, stack frame and tes state. More...
|
|
◆ test_method_attribute() [1/4]
template<typename test_class_t >
xtd::tunit::test_method_attribute::test_method_attribute |
( |
const std::string & |
name, |
|
|
test_class_t & |
test_class, |
|
|
void(test_class_t::*)() |
method |
|
) |
| |
|
inlinenoexcept |
◆ test_method_attribute() [2/4]
template<typename test_class_t >
xtd::tunit::test_method_attribute::test_method_attribute |
( |
const std::string & |
name, |
|
|
test_class_t & |
test_class, |
|
|
void(test_class_t::*)() |
method, |
|
|
const xtd::diagnostics::stack_frame & |
stack_frame |
|
) |
| |
|
inlinenoexcept |
Creates a new instance of test_method_attribute with specified name, test_class, method, and stack frame.
- Parameters
-
name | The name of the test method attribute. |
test_class | The test_class that will contians the test method attribute. |
method | The test method. |
stack_frame | The stack frame of test method. |
◆ test_method_attribute() [3/4]
template<typename test_class_t >
xtd::tunit::test_method_attribute::test_method_attribute |
( |
const std::string & |
name, |
|
|
test_class_t & |
test_class, |
|
|
void(test_class_t::*)() |
method, |
|
|
xtd::tunit::test_state |
test_state |
|
) |
| |
|
inlinenoexcept |
Creates a new instance of test_method_attribute with specified name, test_class, method, and tes state.
- Parameters
-
name | The name of the test method attribute. |
test_class | The test_class that will contians the test method attribute. |
method | The test method. |
test_state | One of xtd::tunit_test_state values. |
◆ test_method_attribute() [4/4]
template<typename test_class_t >
Creates a new instance of test_method_attribute with specified name, test_class, method, stack frame and tes state.
- Parameters
-
name | The name of the test method attribute. |
test_class | The test_class that will contians the test method attribute. |
method | The test method. |
test_state | One of xtd::tunit_test_state values. |
stack_frame | The stack frame of test method. |
The documentation for this class was generated from the following file: