nsubstitute/NSubstitute — pull request #158 by geirsagberg (2014-07-28 11:18:48+00:00)
Title: Added more convenient setup of throwing exceptions.

Instead of `_something.When(s => s.DoStuff()).Do(ci => { throw new ArgumentException(); })`, just call `_something.When(s => s.DoStuff()).Throw()`.

Added three overloads:
1. `public void Throw(Exception exception)`
2. `public void Throw()`
3. `public void Throw(Func createException)`