Monthly Archives: June 2008

Testing for Exceptions in Unit Test Frameworks

In MSTest and nUnit, the typical way to test for exceptions is by using the [ExpectedException] attribute on a test method.  I’ve always found this to be a little annoying, but it was just recently that I decided to do something better.  Unsurprisingly, I’m not the first one to have this thought; xUnit uses this […]

Posted in C#, Unit Testing | 1 Comment