#include <test_cleanup_attribute.h>
Represents a test cleanup attribute.
- Namespace
- xtd::tunit
- Library
- xtd.tunit
- Examples
- The following example shows how to use xtd::tunit::test_cleanup_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.
◆ test_cleanup_attribute() [1/2]
template<typename test_class_t >
xtd::tunit::test_cleanup_attribute::test_cleanup_attribute |
( |
const std::string & |
name, |
|
|
test_class_t & |
test_class, |
|
|
void(*)() |
method |
|
) |
| |
|
inlinenoexcept |
◆ test_cleanup_attribute() [2/2]
template<typename test_class_t >
xtd::tunit::test_cleanup_attribute::test_cleanup_attribute |
( |
const std::string & |
name, |
|
|
test_class_t & |
test_class, |
|
|
void(*)() |
method, |
|
|
const xtd::diagnostics::stack_frame & |
stack_frame |
|
) |
| |
|
inlinenoexcept |
Creates a new instance of test_cleanup_attribute with specified name, test class, method and stack frame.
- Parameters
-
name | The name of the test class attribute. |
test_class | The test_class that will contians the test cleanup attribute. |
method | The test cleanup method. |
stack_frame | The stack frame of test cleanup method. |
The documentation for this class was generated from the following file: