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
ParameterDescription
expectedThe expected exception type.
blockThe lambda to execute.
Example
import klyn.unittest

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