xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
xtd::tunit::class_cleanup_attribute Class Reference

#include <class_cleanup_attribute.h>

Definition

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

Namespace
xtd::tunit
Library
xtd.tunit

Public Member Functions

template<typename test_class_t >
 class_cleanup_attribute (const std::string &name, test_class_t &test_class, void(*method)()) noexcept
 Creates new instance of class_cleanup_attribute attribute.
 
template<typename test_class_t >
 class_cleanup_attribute (const std::string &name, test_class_t &test_class, void(*method)(), const xtd::diagnostics::stack_frame &stack_frame) noexcept
 Creates new instance of class_cleanup_attribute attribute.
 

Constructor & Destructor Documentation

◆ class_cleanup_attribute() [1/2]

template<typename test_class_t >
xtd::tunit::class_cleanup_attribute::class_cleanup_attribute ( const std::string &  name,
test_class_t &  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 test_class_t >
xtd::tunit::class_cleanup_attribute::class_cleanup_attribute ( const std::string &  name,
test_class_t &  test_class,
void(*)()  method,
const xtd::diagnostics::stack_frame stack_frame 
)
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.
stack_frameContains information about current file and current line.

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