Question:
How to write to console / output from a UnitTests method in Visual Studio 2010 ?Answer:
You simply have to know that you should use the TestContext, a utility class of the Visual Studio test framework.Here is an example
[TestMethod()] public void ProcessTest() { TestContext.WriteLine("Hello Test"); }
No comments:
Post a Comment