Kluent
Kluent copied to clipboard
Potentially misleading behavior of shoudNotThrow
I think shouldNotThrow
could hide a programming error.
The following code completes without issues:
invoking { throw IllegalArgumentException() } shouldNotThrow CustomException::class
I think the IllegalArgumentException
should be re-thrown so it's not hidden from the developer.