title: Outputting text in unit tests
body: <p>When I run my unit tests, I would like to print out and read how long it takes to run a function. I tried using Console.WriteLine() and Trace.WriteLine(), but that didn't work. What is the proper method I should be using?</p>
  <p>I have the following unit test</p>
  <pre><code>[TestMethod()]
  public void ProductSerializationTest()
  {
      Stopwatch swSerialization = new Stopwatch();
      swSerialization.Start();
      SerializeProductsToXML(dummyProductList, XMLFolderPath);
      swSerialization.Stop();
      // Print out swSerialization.Elapsed value
   }
  </code></pre>