Method for handling exceptions in mstest
<p>I have a lot of tests writen in this format:</p>

<pre><code>[TestMethod]
public void TestMethod1()
{
    try
    {
        DoShomething();
    }
    catch (Exception e)
    {
        WriteExceptionLogWithScreenshot( e );
    }
}

[TestMethod]
public void TestMethod2()
{
    try
    {
        DoAnotherShomething();
    }
    catch ( Exception e )
    {
        WriteExceptionLogWithScreenshot( e );
    }
}
</code></pre>

<p>I would like to unify this exception handling using something like</p>

<pre><code>[TestCleanup]
public void Cleanup()
{
    // find out if an exception was thrown and run WriteExceptionLogWithScreenshot( e )
}
</code></pre>

<p>Then I could avoid writing try catch blocks in all methods.</p>

<p>Does mstest support something like this? anyone have an ideia about what I could do?</p>