klyn.unittest.Test.Test
constructor

    public Test(timeout as ULong = 0u, expected as Type = null):

Description

Creates test metadata.

Parameters

Parameter | Description
--- | ---
`timeout` | Maximum execution time in milliseconds, or `0u` for no limit.
`expected` | Expected exception type, or `null`.

Example

    @Test(timeout=1000, expected=TypeError)
    public rejectsInvalidCode():
    eval("value as Int = \"invalid\"")