I’m using Microsoft Unit Testing to write unit tests in Visual Studio 2008. I wanted to view test output for debugging purposes. I’ll outline how you can view test output.
Use Console.Out.WriteLine to output text from the test. Then within Visual Studio 2008 you can right click on the test in the test results window and select View Test Results Details.
You can also double click the test to view the result details.
A document will display in Visual Studio which will show the console output for the test.
For example the following test:
[TestMethod]
public void Testing()
{
Console.Out.WriteLine("This is the test output");
}
Will display this output:
There you can see the test output under the Standard Console Output section.
Hopefully this quickly answers this question for someone else :-)
Next entry: Microsoft Dynamics (Great Plains) SOP10102.DISTTYPE values
Previous Entry: SSL with .NET SmtpClient use port 587 for the Comcast SMTP server
Latest entries:
Create absolute URLs using ASP.NET MVC
Comments
This helped me Thanks much..!
My Links
Tags
Follow me
About
Powered by FoxBlog
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2011, Nathan Fox
This tip helped me bro. Thanks.
Sreejith K - April 22, 2011