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

x
?
Solved

Cannot View Console.Writeline messages whenUnit Testing

Posted on 2009-04-24
4
Medium Priority
?
930 Views
Last Modified: 2013-11-26

Can someone tell me why I cannot find where to see the following Console.Write messages when Unit testing?  
Using Visual Studio 2008 Professional.

Thanks!
[TestMethod]
		public void Test_Console()
		{
			Console.WriteLine("FOO BAR TEST");
			Console.WriteLine("STOP:");
		}

Open in new window

0
Comment
Question by:Chiliyago
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24232490
I don't believe the console is available during a unit test. What exactly are you trying to accomplish with your console.writeline statement?
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24232493
This link provides a tutorial to unit testing.

http://msdn.microsoft.com/en-us/library/ms379625(VS.80).aspx
0
 

Author Comment

by:Chiliyago
ID: 24233156
just output message
0
 

Accepted Solution

by:
Chiliyago earned 0 total points
ID: 24281072
The answer is Debug.Write()
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

569 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