Deleted
Deleted

Reputation: 4217

Text output from tests using Visual Studio 2008 + Resharper + NUnit

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

Answers (2)

dcp
dcp

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

Martin Harris
Martin Harris

Reputation: 28617

You can use Trace.Write() instead of Console.Write() to write to the output window inside the Visual Studio IDE

See here

Upvotes: 11

Related Questions