23 template<
typename test_
class_t>
31 template<
typename test_
class_t>
42#define class_initialize_(method_name) \
43 __##method_name##_static() {} \
44 class __class_initialize_attribute : public xtd::tunit::class_initialize_attribute { \
46 template<typename test_class> __class_initialize_attribute(test_class& test) : class_initialize_attribute(#method_name, test, &method_name, {__FILE__, __LINE__, __func__}) {__##method_name##_static();} \
47 } __class_initialize_attribute {*this}; \
48 static void method_name()
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:29
This attribute is use to add initialize class method to class test attribute.
Definition class_initialize_attribute.h:17
class_initialize_attribute(const std::string &name, test_class_t &test_class, void(*method)()) noexcept
Creates new instance of class initialize_attribute attribute.
Definition class_initialize_attribute.h:24
class_initialize_attribute(const std::string &name, test_class_t &test_class, void(*method)(), const xtd::diagnostics::stack_frame &caller) noexcept
Creates new instance of class initialize_attribute attribute.
Definition class_initialize_attribute.h:32
Definition test_class.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::tunit::test class.