public annotation Test:
Annotation to mark a method as a test case.
A timeout of 0u disables the limit. A timed test that exceeds its limit is interrupted, reported as failed, and cannot satisfy expected.
public class MyTestClass: @Test(timeout=1000, expected=ValueException) public method testMethod(): # Test code here
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | expectedexpected as Type = null |
Exception type expected from the test. |
| public readonly property | timeouttimeout as ULong = 0u |
Maximum execution time in milliseconds. |