title: What is the purpose of the TestExecution class in MSTest?
body: <p>I found the <a href="http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.testexecution.aspx">TestExecution</a> class, which exposes a bunch of events that would be incredibly helpful. However, I can't find a reference to it other than MSDN's documentation, and the documentation doesn't provide any hints as far as to how it is used, or how I might get a reference to an instance during a test run.</p>
  
  <p>Looking with .NET Reflector wasn't helpful either - <code>TestExecution</code> is implemented by one other class, <code>UnitTestExecution</code>, which is internal. I could not find any other references to either class throughout any of the Microsoft.VisualStudio.QualityTools.* libraries, neither in the form of further implementations nor references as property types in any other classes.</p>
  
  <p>How might I gain access to these events?</p>