Port C++ console test to MSTest.

Need to adapt std::wout to .NET console output.