30 template<
typename test_
class_t>
38 template<
typename test_
class_t>
51 #define test_cleanup_(method_name) \ 52 __##method_name##_unused() = delete; \ 53 class __test_cleanup_attribute : public xtd::tunit::test_cleanup_attribute { \ 55 template<typename test_class> __test_cleanup_attribute(test_class& test) : test_cleanup_attribute(#method_name, test, &test_class::method_name, {__FILE__, __LINE__, __func__}) {} \ 56 } __test_cleanup_attribute {*this}; \ 57 static void method_name() test_cleanup_attribute(const std::string &name, test_class_t &test_class, void(*method)(), const xtd::diagnostics::stack_frame &stack_frame) noexcept
Creates a new instance of test_cleanup_attribute with specified name, test class, method and stack fr...
Definition: test_cleanup_attribute.h:39
Contains xtd::tunit::test class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
test_cleanup_attribute(const std::string &name, test_class_t &test_class, void(*method)()) noexcept
Creates a new instance of test_cleanup_attribute with specified name, test_class and method...
Definition: test_cleanup_attribute.h:31
Represents a test class.
Definition: test_class.h:39
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
Represents a test cleanup attribute.
Definition: test_cleanup_attribute.h:21