Asserts whether a callable object wrapped around the assertion throws an exception of type T.
void throwing() { throw new Exception("I throw with 0!"); } should(&throwing).Throw!Exception; void notThrowing() { return; } should(¬Throwing).not.Throw;
See Implementation
Asserts whether a callable object wrapped around the assertion throws an exception of type T.