Closed piotrb5e3 closed 2 years ago
Description
I added support for suspend functions in should throw and should not throw, as requested in #215. I also wrote tests for should throw and should not throw that check behavior on both suspending and regular functions.
should throw
should not throw
Usage examples
coInvoking { foo() } `should throw` CustomException(12345) coInvoking { bar() } `should not throw` CustomException::class
Checklist
AUTHORS
Thank you very much for the contribution :)
Description
I added support for suspend functions in
should throw
andshould not throw
, as requested in #215. I also wrote tests forshould throw
andshould not throw
that check behavior on both suspending and regular functions.Usage examples
Checklist
AUTHORS
file, if it wasn't already present.