How to write output from a unit test?
Any call in my unit tests to either Debug.Write(line) or Console.Write(Line) simply gets skipped over while debugging and the output is never printed. Calls to these functions from within classes I'm using work fine. I understand that unit testing is meant to be automated, but I still would like to be able to output messages from a unit test. frennky Try using TestContext.WriteLine() which outputs text in test results. Example: [TestClass] public class UnitTest1 { private TestContext testContextInstance; /// <summary> /// Gets or sets the test context which provides /// information about and