Consider:
[Test]
public void Test1()
{
Trace.TraceInformation("Hello");
}
When running it from Visual Studio 2015, the output window (Tests) shows no trace lines:
------ Discover test started ------
NUnit Adapter 3.4.0.0: Test discovery starting
NUnit Adapter 3.4.0.0: Test discovery complete
========== Discover test finished: 9 found (0:00:01.325888) ==========
------ Run test started ------
NUnit Adapter 3.4.0.0: Test execution started
Running selected tests in C:\Projects\bla-bla.dll
NUnit3TestExecutor converted 9 of 9 NUnit test cases
NUnit Adapter 3.4.0.0: Test execution complete
========== Run test finished: 1 run (0:00:03.5445181) ==========
I remember it was working fine with NUnit 2 and Visual Studio 2013. Do I need to somehow turn it on?
My app.config
has no overrides to default <system.diagnostics>
.