klyn.unittest.Assert.assertRaises
method

    public static assertRaises(expected as Type, block as Object) as Void:

Description

Verifies that executing the lambda raises the expected exception type.

Parameters

Parameter | Description
--- | ---
`expected` | The expected exception type.
`block` | The lambda to execute.

Example

    import klyn.unittest

    Assert.assertRaises(TypeError, lambda (): Char(-1))