Adding a new SendWaitingCommand message to the test sinks so that they can tell dotnet test that the runner is ready to receive commands.

This commit is contained in:
Livar Cunha 2016-03-03 19:53:33 -08:00
parent 5cf680d2f0
commit 59033ba1e7
2 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,8 @@ namespace Microsoft.Extensions.Testing.Abstractions
{
public interface ITestSink
{
void SendWaitingCommand();
void SendTestCompleted();
}
}

View file

@ -1,6 +1,7 @@
// 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;
using System.IO;
namespace Microsoft.Extensions.Testing.Abstractions
@ -21,5 +22,13 @@ namespace Microsoft.Extensions.Testing.Abstractions
MessageType = "TestRunner.TestCompleted"
});
}
public void SendWaitingCommand()
{
Stream.Send(new Message
{
MessageType = "TestRunner.WaitingCommand"
});
}
}
}