Cannot View Console.Writeline messages whenUnit Testing

Posted on 2009-04-24
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.


		public void Test_Console()


			Console.WriteLine("FOO BAR TEST");



Open in new window

Question by:Chiliyago
    LVL 74

    Expert Comment

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

    Expert Comment

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

    Author Comment

    just output message

    Accepted Solution

    The answer is Debug.Write()

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 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

    20 Experts available now in Live!

    Get 1:1 Help Now