-
Notifications
You must be signed in to change notification settings - Fork 322
/
TestLoggerEvents.cs
62 lines (49 loc) · 1.83 KB
/
TestLoggerEvents.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
namespace Microsoft.VisualStudio.TestPlatform.ObjectModel.Client;
/// <summary>
/// Exposes events that Test Loggers can register for.
/// </summary>
public abstract class TestLoggerEvents
{
/// <summary>
/// Default constructor.
/// </summary>
protected TestLoggerEvents()
{
}
/// <summary>
/// Raised when a test message is received.
/// </summary>
public abstract event EventHandler<TestRunMessageEventArgs>? TestRunMessage;
/// <summary>
/// Raised when a test run starts.
/// </summary>
public abstract event EventHandler<TestRunStartEventArgs>? TestRunStart;
/// <summary>
/// Raised when a test result is received.
/// </summary>
public abstract event EventHandler<TestResultEventArgs>? TestResult;
/// <summary>
/// Raised when a test run is complete.
/// </summary>
public abstract event EventHandler<TestRunCompleteEventArgs>? TestRunComplete;
/// <summary>
/// Raised when test discovery starts
/// </summary>
public abstract event EventHandler<DiscoveryStartEventArgs>? DiscoveryStart;
/// <summary>
/// Raised when a discovery message is received.
/// </summary>
public abstract event EventHandler<TestRunMessageEventArgs>? DiscoveryMessage;
/// <summary>
/// Raised when discovered tests are received
/// </summary>
public abstract event EventHandler<DiscoveredTestsEventArgs>? DiscoveredTests;
/// <summary>
/// Raised when test discovery is complete
/// </summary>
public abstract event EventHandler<DiscoveryCompleteEventArgs>? DiscoveryComplete;
}