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.
Public Member Functions | List of all members
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 test_class_t >
 class_initialize_attribute (const std::string &name, test_class_t &test_class, void(*method)()) noexcept
 Creates new instance of classinitialize_attribute attribute. More...
 
template<typename test_class_t >
 class_initialize_attribute (const std::string &name, test_class_t &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.

Library
xtd.tunit

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 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 test_class_t >
xtd::tunit::class_initialize_attribute::class_initialize_attribute ( const std::string &  name,
test_class_t &  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: