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

I like to draw console output for research purposes when I create a unit test. Is there a way to see Console.WriteLine ("s") in Visual Studio when I run my test using Resharper?

I do not leave console output in the final version of my tests, so there is no need to comment on this.

+4
source share
2 answers

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

Look here

+11
source

Of course. When you run tests in Resharper, the console output appears in the device test window, directly below the test section (i.e., directly under the section where the tests are indicated in the device test window). I am running Resharper 4.5, so I can not comment on 5.0, but it certainly hasnโ€™t changed.

+4
source

Source: https://habr.com/ru/post/1310244/


All Articles