How to get console output in Visual Studio 2012 Unit Tests
问题 I have a managed C++ unit test in VS 2012. The test runs fine and I can verify that a loop with multiple cout calls is executed. However when I look at the test explorer the test is marked as passed but there is no hyper link for the output as I am used to for c# projects. The code at the end of my test is for (int i = 0; i < 4; i++) { cout << parameters[i]; cout << endl; } which I can verify runs as I step through it in the debugger. I have also tried with cerr but no difference. 回答1: You