A little late to talk.
I also tried to get Debug, Trace, Console or TestContext to work in unit testing.
None of these methods will work or show output in the output window.
Trace.WriteLine("test trace"); Debug.WriteLine("test debug"); TestContext.WriteLine("test context"); Console.WriteLine("test console");
VS2012 and Big
(from comments) There is no icon in Visual Studio 2012. Instead, there is an Output link in the test results. If you click on the link, you will see all WriteLine .
Before VS2012
Then I noticed that in my Test Results window after starting the test next to the green circle with little success, there is another icon that I double-clicked on it. These were the results of my test, and it included all types of letters above.
Yogurt The Wise Nov 23 '12 at 16:35 2012-11-23 16:35
source share