Reputation: 4217
I like to do console output for exploratory purposes when I am creating a unit test. Is there a way to see the Console.WriteLine("s") in Visual Studio when executing my test using Resharper?
I don't keep the console output in the final version of my tests, so there is no need to comment on that.
Upvotes: 4
Views: 2402
Reputation: 55449
Sure. When you run the tests in Resharper, the console output appears in the unit testing window, right beneath the test section (i.e. right beneath the section where the tests are listed in the unit testing window). I run Resharper 4.5, so I cannot comment on 5.0 but surely this hasn't changed.
Upvotes: 4
Reputation: 28617
You can use Trace.Write() instead of Console.Write() to write to the output window inside the Visual Studio IDE
Upvotes: 11