public static assertRaises(expected as Type, block as Object) as Void:
Verifies that executing the lambda raises the expected exception type.
| Parameter | Description |
|---|---|
expected | The expected exception type. |
block | The lambda to execute. |
import klyn.unittest Assert.assertRaises(TypeError, lambda (): Char(-1))