public GivenATestSessionTerminateMessageHandler()
        {
            var reportingChannel = new Mock<IReportingChannel>();
            _testMessagesCollectionMock = new Mock<ITestMessagesCollection>();
            var dotnetTestMock = new Mock<IDotnetTest>();
            var messageHandler = new TestSessionTerminateMessageHandler(_testMessagesCollectionMock.Object);

            _nextState = messageHandler.HandleMessage(dotnetTestMock.Object, new Message
            {
                MessageType = TestMessageTypes.TestSessionTerminate
            });
        }
Ejemplo n.º 2
0
 private bool TerminateTestSession(Message message)
 {
     return(TestSessionTerminateMessageHandler.HandleMessage(this, message) == DotnetTestState.Terminated);
 }