Added support for ShouldThrow and ShouldNotThrow.