I have the following NUnit test:
[Test]
public void Test()
{
StreamWriter standardOutput = new StreamWriter(Console.OpenStandardOutput());
standardOutput.AutoFlush = true;
Console.SetOut(standardOutput);
Assert.That(1, Is.EqualTo(2));
}
The NCrunch Tests window reports that the test fails, but doesn't show me the assert error.
If I remove the console redirection, it works, the assert error is displayed.
How do I restore the output so that the assert error is displayed ?
(Of course, I am doing real stuff with the Console redirection, I simplified the example).
Using VS2015 Professional update 1 and Nunit 3.8.1