Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2007-10-15
1
Medium Priority
?
2,747 Views
Last Modified: 2011-08-18
Hi,

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.

Thanks
0
Comment
Question by:brdrok
1 Comment
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 2000 total points
ID: 20081179
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
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

581 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