Can I write into the console in a unit test? If yes, why doesn’t the console window open?

Someone commented about this apparently new functionality in Visual Studio 2013. I wasn’t sure what he meant at first, but now that I do, I think it deserves its own answer.

We can use Console.WriteLine normally and the output is displayed, just not in the Output window, but in a new window after we click “Output” in the test details.

Enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)