tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
test_event_args.h
Go to the documentation of this file.
1 #pragma once
4 #include "test_class.h"
5 #include "test.h"
6 #include "tunit_event_args.h"
7 
9 namespace tunit {
12  public:
16  explicit test_event_args(const tunit::test& test, const tunit::test_class& test_class, const tunit::unit_test& unit_test) : tunit::tunit_event_args(unit_test), t_(test), tc_(test_class) {}
17 
20  const tunit::test& test() const noexcept {return this->t_;}
21 
24  const tunit::test_class& test_class() const noexcept {return this->tc_;}
25 
26  private:
27  const tunit::test& t_;
28  const tunit::test_class& tc_;
29  };
30 }
Definition: test_class.h:21
Provides data for the tunit::test events.
Definition: test_event_args.h:11
const tunit::test_class & test_class() const noexcept
Gets current class test.
Definition: test_event_args.h:24
Contains tunit::test class.
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
Contains tunit::test_class class.
Definition: test.h:20
const tunit::test & test() const noexcept
Gets current test.
Definition: test_event_args.h:20
Contains tunit::tunit_event_args class.
test_event_args(const tunit::test &test, const tunit::test_class &test_class, const tunit::unit_test &unit_test)
Create a new instance of class class_event_args.
Definition: test_event_args.h:16