WriteTestFailed() public method

public WriteTestFailed ( string message, string details ) : void
message string
details string
return void
Esempio n. 1
0
 public void WriteTestFailed_ShouldOutputTestFailedAndFinishedMessage()
 {
     _subject = new TestLogger(0,"test1");
     var message = "kaboom";
     var details = "stack trace";
     _subject.WriteTestFailed(message, details);
     var output = String.Format("  [TEST] test1.................. Failed\r\n  [Details] kaboom\r\n  [StackTrace] stack trace\r\n");
     Assert.That(_textMessageWriter.ToString(), Is.EqualTo(output));
 }
        public void WriteTestFailed_ShouldOutputTestFailedAndFinishedMessage()
        {
            _subject = new TestLogger(0, "test1");
            var message = "kaboom";
            var details = "stack trace";

            _subject.WriteTestFailed(message, details);
            var output = String.Format("  [TEST] test1.................. Failed\r\n  [Details] kaboom\r\n  [StackTrace] stack trace\r\n");

            Assert.That(_textMessageWriter.ToString(), Is.EqualTo(output));
        }