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