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

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

#include <class_cleanup_attribute.h>

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

§ class_cleanup_attribute() [1/2]

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

Creates new instance of class_cleanup_attribute attribute.

Parameters
nameName of attribute
test_classxtd::tunit::class_test containing clean_up method.
methodCleanup class method.

§ class_cleanup_attribute() [2/2]

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

Creates new instance of class_cleanup_attribute attribute.

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

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