title: How to write to Console.Out during execution of an MSTest test
body: <p><em><strong>Context:</em></strong><br>
  We have some users reporting issues with a file upload feature in our web application. It only happens occasionally and without any special pattern. We have been trying to figure it out for a long time, adding debug information anywhere we can think it might help, crawling the logs etc, but we have not been able to reproduce or figure it out.</p>
  
  <p><em><strong>Problem:</em></strong><br>
  I'm now trying to reproduce this by using MSTest and WatiN to repeat the operation that is supposed to fail a large number of times (several hundreds). Just to have a clue about how far in the loop the test has gotten, I want to print something like:</p>
  
  <pre><code>Console.WriteLine(String.Format("Uploaded file, attempt {0} of {1}", i, maxUploads));
  </code></pre>
  
  <p>This does however not appear in the Output window. Now I know that you'll get the console output in the test results (as well as what you output from <code>Debug.Writeline</code> etc), but this is not available until <em>after</em> the test has finished. And since my test with hundreds of repetitions could take quite some time, I'd like to know how far it has gotten.</p>
  
  <p><em><strong>Question:</em></strong><br>
  Is there a way I can get the console output in the Output window <em>during</em> test execution?</p>