tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
tunit_event_args.h
Go to the documentation of this file.
1 #pragma once
4 
6 namespace tunit {
8  class unit_test;
10 
13  public:
15  explicit tunit_event_args(const tunit::unit_test& unit_test) : ut_(unit_test) {};
16 
18  tunit_event_args(const tunit_event_args&) = default;
20 
23  const tunit::unit_test& unit_test() const {return this->ut_;}
24 
25  private:
26  const tunit::unit_test& ut_;
27  };
28 }
const tunit::unit_test & unit_test() const
Gets current unit test.
Definition: tunit_event_args.h:23
The template class.
Definition: unit_test.h:23
tunit_event_args is the base class for classes containing event data.
Definition: tunit_event_args.h:12
The tunit namespace contains a unit test library.
Definition: abort_error.h:8
tunit_event_args(const tunit::unit_test &unit_test)
Create a new instance of class tunit_event_args.
Definition: tunit_event_args.h:15