public Test(timeout as ULong = 0u, expected as Type = null):
Creates test metadata.
| Parameter | Description |
|---|---|
timeout | Maximum execution time in milliseconds, or 0u for no limit. |
expected | Expected exception type, or null. |
@Test(timeout=1000, expected=TypeError)
public rejectsInvalidCode():
eval("value as Int = \"invalid\"")