Open piotrb5e3 opened 2 years ago
I think shouldNotThrow could hide a programming error.
shouldNotThrow
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.
IllegalArgumentException
I think
shouldNotThrow
could hide a programming error.The following code completes without issues:
I think the
IllegalArgumentException
should be re-thrown so it's not hidden from the developer.