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.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
xtd::tunit::class_initialize_attribute Class Reference

#include <class_initialize_attribute.h>

Definition

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

Namespace
xtd::tunit
Library
xtd.tunit

Public Member Functions

template<typename test_class_t >
 class_initialize_attribute (const std::string &name, test_class_t &test_class, void(*method)()) noexcept
 Creates new instance of class initialize_attribute attribute.
 
template<typename test_class_t >
 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.
 

Constructor & Destructor Documentation

◆ class_initialize_attribute() [1/2]

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

Creates new instance of class initialize_attribute attribute.

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

◆ class_initialize_attribute() [2/2]

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

Creates new instance of class initialize_attribute attribute.

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

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