xtd 0.2.0
Loading...
Searching...
No Matches
event_listener.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "test_event_args.hpp"
8
10namespace xtd {
12 namespace tunit {
24 public:
26 virtual ~event_listener() = default;
28
30
35
39
42 virtual void on_class_end(const xtd::tunit::class_event_args& e) const {}
43
47
51
54 virtual void on_class_start(const xtd::tunit::class_event_args& e) const {}
55
59
63
67
71
74 virtual void on_test_aborted(const xtd::tunit::test_event_args& e) const {}
75
78 virtual void on_test_end(const xtd::tunit::test_event_args& e) const {}
79
82 virtual void on_test_ignored(const xtd::tunit::test_event_args& e) const {}
83
86 virtual void on_test_failed(const xtd::tunit::test_event_args& e) const {}
87
90 virtual void on_test_start(const xtd::tunit::test_event_args& e) const {}
91
94 virtual void on_test_succeed(const xtd::tunit::test_event_args& e) const {}
95
99
103
106 virtual void on_unit_test_end(const xtd::tunit::tunit_event_args& e) const {}
107
111
115
120 };
121 }
122}
Contains xtd::tunit::class_event_args class.
Provides data for the xtd::tunit::class_test events.
Definition class_event_args.hpp:18
Represent the event listener class. Unit test call theses events when unit tests are processing.
Definition event_listener.hpp:23
virtual void on_test_cleanup_end(const xtd::tunit::test_event_args &e) const
Occurs when test cleanup is ended.
Definition event_listener.hpp:58
virtual void on_class_cleanup_end(const xtd::tunit::class_event_args &e) const
Occurs when class cleanup is ended.
Definition event_listener.hpp:34
virtual void on_test_aborted(const xtd::tunit::test_event_args &e) const
Occurs when test is aborted.
Definition event_listener.hpp:74
virtual void on_test_end(const xtd::tunit::test_event_args &e) const
Occurs when test is ended.
Definition event_listener.hpp:78
virtual void on_class_initialize_end(const xtd::tunit::class_event_args &e) const
Occurs when class initialize is ended.
Definition event_listener.hpp:46
virtual void on_unit_test_initialize_start(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test initialize is started.
Definition event_listener.hpp:114
virtual void on_class_cleanup_start(const xtd::tunit::class_event_args &e) const
Occurs when class cleanup is started.
Definition event_listener.hpp:38
virtual void on_class_initialize_start(const xtd::tunit::class_event_args &e) const
Occurs when class initialize is started.
Definition event_listener.hpp:50
virtual void on_class_start(const xtd::tunit::class_event_args &e) const
Occurs when class is started.
Definition event_listener.hpp:54
virtual void on_test_initialize_end(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is ended.
Definition event_listener.hpp:66
virtual void on_test_succeed(const xtd::tunit::test_event_args &e) const
Occurs when test is succeed.
Definition event_listener.hpp:94
virtual void on_unit_test_cleanup_start(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test is started.
Definition event_listener.hpp:102
virtual void on_unit_test_start(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test cleanup is started.
Definition event_listener.hpp:118
virtual void on_test_cleanup_start(const xtd::tunit::test_event_args &e) const
Occurs when test cleanup is started.
Definition event_listener.hpp:62
virtual void on_test_start(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is started.
Definition event_listener.hpp:90
virtual void on_unit_test_end(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test is ended.
Definition event_listener.hpp:106
virtual void on_unit_test_cleanup_end(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test cleanup is ended.
Definition event_listener.hpp:98
virtual void on_test_ignored(const xtd::tunit::test_event_args &e) const
Occurs when test is ignored.
Definition event_listener.hpp:82
virtual void on_class_end(const xtd::tunit::class_event_args &e) const
Occurs when class is ended.
Definition event_listener.hpp:42
virtual void on_test_failed(const xtd::tunit::test_event_args &e) const
Occurs when test is failed.
Definition event_listener.hpp:86
virtual void on_unit_test_initialize_end(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test initialize is ended.
Definition event_listener.hpp:110
virtual void on_test_initialize_start(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is ended.
Definition event_listener.hpp:70
Provides data for the xtd::tunit::test events.
Definition test_event_args.hpp:19
tunit_event_args is the base class for classes containing event data.
Definition tunit_event_args.hpp:19
@ e
The E key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::tunit::test_event_args class.
Contains xtd::tunit::tunit_event_args class.