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:
commit
049bd17ed2
2 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,8 @@ namespace Microsoft.Extensions.Testing.Abstractions
|
|||
{
|
||||
public interface ITestSink
|
||||
{
|
||||
void SendWaitingCommand();
|
||||
|
||||
void SendTestCompleted();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue