NUnit does not capture output of std::cerr

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-03-25T05:41:19Z Indexed on 2010/03/25 5:43 UTC
Read the original article Hit count: 458

Filed under:
|
|

I have an nunit Test in C#, that calls a C# wrapper of a function in a C++ DLL. The C++ code uses std::cerr to output various messages.

These messages cannot be redirected using nunit-console /out /err or /xml switch. In nunit (the GUI version) the output does not appear anywhere.

I would like to be able to see this output in nunit (GUI version). Ideally I would like to be able to access this output in the Test.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about c#

Related posts about nunit