should Throw
Asserts that the provided block throws an exception of type T.
This helper function executes the given code block and verifies that an exception of the specified reified type is raised. If no exception is thrown, or if an exception of a different type is thrown, the test will fail.
Type Parameters
T
The expected type of the Throwable.