NUnit Gui questions:  How to output messages to the Console.Out or Trace Output tabs

Posted on 2007-10-15
Last Modified: 2011-08-18

How do I output messages to the Trace Output tab?  Also, what is the difference between "Trace Output" and "Internal Trace"?  What is the "Console.Error" tab used for.  I suspect to view errors but isn't that what the Assert....() is used for?

For example, I have something like this in my test:

Trace.WriteLine("trace line");
Debug.WriteLine("debug line");

but neither shows up in the NUnit Gui.

Question by:brdrok
    1 Comment
    LVL 29

    Accepted Solution

    It depends on what system you're using to run tests. I never encountered any problems using Visual Studio team system, now I'm using resharper unit runner - it's in some aspects even better - just open "output tab" - and see wahteve printed with "Debug.writeline or any assetts messages.
    So, what system are you using ru run unit tests?

    Try Console.WriteLine("console line ")  along with Debug.WriteLine("debug line");

    and try to open different tabs in your test runner

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now