Exceptions
Sometimes, the expected behavior of a method is to throw an exception. In Behavioral, this can be achieved by calling ThenThrow<TException> in the UnitTest.Run method instead of making any Then calls.

ThenThrow<OverflowException>();

Last edited Aug 15, 2011 at 1:05 PM by garymcleanhall, version 1

Comments

No comments yet.