xtd.tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
xtd::tunit::class_initialize_attribute Class Reference

This attribute is use to add initialize class method to class test attribute. More...

#include <class_initialize_attribute.h>

Public Member Functions

template<typename TestClass >
 class_initialize_attribute (const std::string &name, TestClass &test_class, void(*method)()) noexcept
 Creates new instance of classinitialize_attribute attribute. More...
 
template<typename TestClass >
 class_initialize_attribute (const std::string &name, TestClass &test_class, void(*method)(), const xtd::tunit::line_info &caller) noexcept
 Creates new instance of classinitialize_attribute attribute. More...
 

Detailed Description

This attribute is use to add initialize class method to class test attribute.

Constructor & Destructor Documentation

§ class_initialize_attribute() [1/2]

template<typename TestClass >
xtd::tunit::class_initialize_attribute::class_initialize_attribute ( const std::string &  name,
TestClass &  test_class,
void(*)()  method 
)
inlinenoexcept

Creates new instance of classinitialize_attribute attribute.

Parameters
nameName of attribute
test_classxtd::tunit::class_test containing initialize method.
methodInitialize class method.

§ class_initialize_attribute() [2/2]

template<typename TestClass >
xtd::tunit::class_initialize_attribute::class_initialize_attribute ( const std::string &  name,
TestClass &  test_class,
void(*)()  method,
const xtd::tunit::line_info caller 
)
inlinenoexcept

Creates new instance of classinitialize_attribute attribute.

Parameters
nameName of attribute
test_classxtd::tunit::class_test containing initialize method.
methodInitialize class method.
line_infoContains information about current file and current line.

The documentation for this class was generated from the following file: