xtd 0.2.0
Loading...
Searching...
No Matches
event_listener.h
Go to the documentation of this file.
1
4#pragma once
5#include "class_event_args.h"
6#include "test_event_args.h"
7#include "tunit_event_args.h"
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.h:18
Represent the event listener class. Unit test call theses events when unit tests are processing.
Definition event_listener.h:23
virtual void on_test_cleanup_end(const xtd::tunit::test_event_args &e) const
Occurs when test cleanup is ended.
Definition event_listener.h:58
virtual void on_class_cleanup_end(const xtd::tunit::class_event_args &e) const
Occurs when class cleanup is ended.
Definition event_listener.h:34
virtual void on_test_aborted(const xtd::tunit::test_event_args &e) const
Occurs when test is aborted.
Definition event_listener.h:74
virtual void on_test_end(const xtd::tunit::test_event_args &e) const
Occurs when test is ended.
Definition event_listener.h:78
virtual void on_class_initialize_end(const xtd::tunit::class_event_args &e) const
Occurs when class initialize is ended.
Definition event_listener.h: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.h:114
virtual void on_class_cleanup_start(const xtd::tunit::class_event_args &e) const
Occurs when class cleanup is started.
Definition event_listener.h:38
virtual void on_class_initialize_start(const xtd::tunit::class_event_args &e) const
Occurs when class initialize is started.
Definition event_listener.h:50
virtual void on_class_start(const xtd::tunit::class_event_args &e) const
Occurs when class is started.
Definition event_listener.h:54
virtual void on_test_initialize_end(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is ended.
Definition event_listener.h:66
virtual void on_test_succeed(const xtd::tunit::test_event_args &e) const
Occurs when test is succeed.
Definition event_listener.h: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.h: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.h:118
virtual void on_test_cleanup_start(const xtd::tunit::test_event_args &e) const
Occurs when test cleanup is started.
Definition event_listener.h:62
virtual void on_test_start(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is started.
Definition event_listener.h:90
virtual void on_unit_test_end(const xtd::tunit::tunit_event_args &e) const
Occurs when unit test is ended.
Definition event_listener.h: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.h:98
virtual void on_test_ignored(const xtd::tunit::test_event_args &e) const
Occurs when test is ignored.
Definition event_listener.h:82
virtual void on_class_end(const xtd::tunit::class_event_args &e) const
Occurs when class is ended.
Definition event_listener.h:42
virtual void on_test_failed(const xtd::tunit::test_event_args &e) const
Occurs when test is failed.
Definition event_listener.h: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.h:110
virtual void on_test_initialize_start(const xtd::tunit::test_event_args &e) const
Occurs when test initialize is ended.
Definition event_listener.h:70
Provides data for the xtd::tunit::test events.
Definition test_event_args.h:19
tunit_event_args is the base class for classes containing event data.
Definition tunit_event_args.h:19
@ e
The E key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::tunit::test_event_args class.
Contains xtd::tunit::tunit_event_args class.