Skip to content

Commit 5e51a03

Browse files
committed
Restore some stuff in interfaces
1 parent e37a6f7 commit 5e51a03

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
3939
/// <param name="discoverySettings">Settings XML for test discovery</param>
4040
/// <param name="options">Options to be passed into the platform.</param>
4141
/// <param name="discoveryEventsHandler">EventHandler to receive discovery events</param>
42-
void DiscoverTests(IEnumerable<string> sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler);
42+
void DiscoverTests(IEnumerable<string> sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler);
4343

4444
/// <summary>
4545
/// Cancels the last discovery request.
4646
/// </summary>
47-
void CancelDiscovery();
47+
new void CancelDiscovery();
4848

4949
/// <summary>
5050
/// Starts a test run given a list of sources.
@@ -121,16 +121,16 @@ public interface IVsTestConsoleWrapper : IVsTestConsoleWrapperAsync
121121
/// <summary>
122122
/// Cancel the last test run.
123123
/// </summary>
124-
void CancelTestRun();
124+
new void CancelTestRun();
125125

126126
/// <summary>
127127
/// Abort the last test run.
128128
/// </summary>
129-
void AbortTestRun();
129+
new void AbortTestRun();
130130

131131
/// <summary>
132132
/// Ends the test session and stops processing requests.
133133
/// </summary>
134-
void EndSession();
134+
new void EndSession();
135135
}
136136
}

src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer/Interfaces/IVsTestConsoleWrapperAsync.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public interface IVsTestConsoleWrapperAsync
3737
/// </summary>
3838
Task DiscoverTestsAsync(IEnumerable<string> sources, string discoverySettings, TestPlatformOptions options, ITestDiscoveryEventsHandler2 discoveryEventsHandler);
3939

40+
/// <summary>
41+
/// See <see cref="IVsTestConsoleWrapper.CancelDiscovery"/>.
42+
/// </summary>
43+
void CancelDiscovery();
44+
4045
/// <summary>
4146
/// Asynchronous equivalent of <see cref="IVsTestConsoleWrapper.RunTests(IEnumerable{string}, string, ITestRunEventsHandler)"/>.
4247
/// </summary>
@@ -77,6 +82,16 @@ public interface IVsTestConsoleWrapperAsync
7782
/// </summary>
7883
Task RunTestsWithCustomTestHostAsync(IEnumerable<TestCase> testCases, string runSettings, TestPlatformOptions options, ITestRunEventsHandler testRunEventsHandler, ITestHostLauncher customTestHostLauncher);
7984

85+
/// <summary>
86+
/// See <see cref="IVsTestConsoleWrapper.CancelTestRun"/>.
87+
/// </summary>
88+
void CancelTestRun();
89+
90+
/// <summary>
91+
/// See <see cref="IVsTestConsoleWrapper.AbortTestRun"/>.
92+
/// </summary>
93+
void AbortTestRun();
94+
8095
/// <summary>
8196
/// Provides back all attachments to TestPlatform for additional processing (for example merging)
8297
/// </summary>
@@ -86,5 +101,10 @@ public interface IVsTestConsoleWrapperAsync
86101
/// <param name="eventsHandler">EventHandler to receive session complete event</param>
87102
/// <param name="cancellationToken">Cancellation token</param>
88103
Task FinalizeMultiTestRunAsync(IEnumerable<AttachmentSet> attachments, bool multiTestRunCompleted, bool collectMetrics, IMultiTestRunFinalizationEventsHandler eventsHandler, CancellationToken cancellationToken);
104+
105+
/// <summary>
106+
/// See <see cref="IVsTestConsoleWrapper.EndSession"/>.
107+
/// </summary>
108+
void EndSession();
89109
}
90110
}

0 commit comments

Comments
 (0)