Merge pull request #1696 from livarcocc/test_abstractions_tests_in_message

Adding a new SendWaitingCommand message to the test sinks
This commit is contained in:
Livar 2016-03-03 21:31:30 -08:00
commit 049bd17ed2
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"
});
}
}
}