5#include <xtd/diagnostics/stack_frame>
26 template<
typename test_
class_t>
34 template<
typename test_
class_t>
47#define test_initialize_(method_name) \
48 __##method_name##_unused() = delete; \
49 class __test_initialize_attribute : public xtd::tunit::test_initialize_attribute { \
51 template<typename test_class> __test_initialize_attribute(test_class& test) : test_initialize_attribute(#method_name, test, &test_class::method_name, {__FILE__, __LINE__, __func__}) {} \
52 } __test_initialize_attribute {*this}; \
53 static void method_name()
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
Represents a test class.
Definition test_class.h:39
void add_test_initialize(const xtd::tunit::test &test_initialize) noexcept
Adds the test initialize method.
Represents a test initialize attribute.
Definition test_initialize_attribute.h:17
test_initialize_attribute(const xtd::string &name, test_class_t &test_class, void(*method)()) noexcept
Creates a new instance of test_initialize_attribute with specified name, test_class and method.
Definition test_initialize_attribute.h:27
test_initialize_attribute(const xtd::string &name, test_class_t &test_class, void(*method)(), const xtd::diagnostics::stack_frame &stack_frame) noexcept
Creates a new instance of test_initialize_attribute with specified name, test_class and method.
Definition test_initialize_attribute.h:35
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10