5#include <xtd/diagnostics/stack_frame>
27 template<
typename test_
class_t>
40#define test_initialize_(method_name) \
41 __##method_name##_unused() = delete; \
42 class __test_initialize_attribute : public xtd::tunit::test_initialize_attribute { \
44 template<typename test_class> __test_initialize_attribute(test_class& test) : test_initialize_attribute(#method_name, test, &test_class::method_name) {} \
45 } __test_initialize_attribute {*this}; \
46 static void method_name()
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.hpp:47
static stack_frame current(const xtd::source_location &value=xtd::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
Represents a test class.
Definition test_class.hpp: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.hpp:17
test_initialize_attribute(const xtd::string &name, test_class_t &test_class, void(*method)(), const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) noexcept
Creates a new instance of test_initialize_attribute with specified name, test_class and method.
Definition test_initialize_attribute.hpp:28
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10