xtd 0.2.0
test_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "test_class.h"
6 #include "test.h"
7 #include "tunit_event_args.h"
8 
10 namespace xtd {
12  namespace tunit {
20  public:
22 
27  explicit test_event_args(const xtd::tunit::test& test, const xtd::tunit::test_class& test_class, const xtd::tunit::unit_test& unit_test) : xtd::tunit::tunit_event_args(unit_test), t_(test), tc_(test_class) {}
29 
31 
35  const xtd::tunit::test& test() const noexcept {return t_;}
36 
39  const xtd::tunit::test_class& test_class() const noexcept {return tc_;}
41 
42  private:
43  const xtd::tunit::test& t_;
44  const xtd::tunit::test_class& tc_;
45  };
46  }
47 }
Represents a test method.
Definition: test.h:31
Contains xtd::tunit::test class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a test class.
Definition: test_class.h:39
const xtd::tunit::test_class & test_class() const noexcept
Gets current class test.
Definition: test_event_args.h:39
const xtd::tunit::test & test() const noexcept
Gets current test.
Definition: test_event_args.h:35
Contains xtd::tunit::test_class class.
Provides data for the xtd::tunit::test events.
Definition: test_event_args.h:19
Contains xtd::tunit::tunit_event_args class.
The unit_test class is unit test base interface.
Definition: unit_test.h:35
tunit_event_args is the base class for classes containing event data.
Definition: tunit_event_args.h:19
test_event_args(const xtd::tunit::test &test, const xtd::tunit::test_class &test_class, const xtd::tunit::unit_test &unit_test)
Create a new instance of class class_event_args.
Definition: test_event_args.h:27