2016-02-13 02:22:35 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System;
|
2016-03-04 01:43:42 +00:00
|
|
|
|
using System.Collections.Generic;
|
2016-02-13 02:22:35 +00:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test
|
|
|
|
|
{
|
|
|
|
|
public interface IDotnetTest : IDisposable
|
|
|
|
|
{
|
|
|
|
|
string PathToAssemblyUnderTest { get; }
|
|
|
|
|
|
|
|
|
|
DotnetTestState State { get; }
|
|
|
|
|
|
|
|
|
|
DotnetTest AddMessageHandler(IDotnetTestMessageHandler messageHandler);
|
|
|
|
|
|
|
|
|
|
IDotnetTestMessageHandler TestSessionTerminateMessageHandler { set; }
|
|
|
|
|
|
|
|
|
|
IDotnetTestMessageHandler UnknownMessageHandler { set; }
|
|
|
|
|
|
2016-03-04 01:43:42 +00:00
|
|
|
|
IEnumerable<string> TestsToRun { get; set; }
|
|
|
|
|
|
2016-02-13 02:22:35 +00:00
|
|
|
|
void StartHandlingMessages();
|
|
|
|
|
|
|
|
|
|
void StartListeningTo(IReportingChannel reportingChannel);
|
|
|
|
|
}
|
|
|
|
|
}
|