public void ShouldProcessErrorMessage()
        {
            var messages = new List <Message>();

            messages.Add(new Message("TEST", MessageType.Error));
            _subject.Display(messages);
            _internalLogger.AssertWasCalled(x => x.WriteError(Arg <String> .Is.Anything, Arg <String> .Is.Anything));
        }
 public void WriteDebugMessage_ShouldWriteIfVerbosityIsFull()
 {
     _messageLoggerProxy.Verbosity = VerbosityLevel.Full;
     _messageLoggerProxy.WriteDebugMessage("test");
     _internalLogger.AssertWasCalled(x => x.WriteDebugMessage("test"));
 }
Example #3
0
 public void DisplayShouldLogTestSuiteStartedAndFinished()
 {
     _subject.Display("", "I TOTALLY FAILED", null, 0);
     _logger.AssertWasCalled(x => x.WriteError(Arg <String> .Is.Anything, Arg <String> .Is.Anything));
     //_suiteLogger.AssertWasCalled(x => x.WriteTestSuiteFinished());
 }