UnitTestFailsDescription | |||||||
Type | statement | ||||||
Dictionary | LCB | ||||||
Library | LiveCode Builder | ||||||
Syntax |
| ||||||
Associations | com.livecode.unittest | ||||||
Summary | Make a failing unit test assertion with a description | ||||||
Parameters |
| ||||||
Example |
| ||||||
Description | Make a unit test assertion, in the expectation that it will fail. The test is considered to have passed if Condition is true. The Description string is a short message that summarises what the test is checking. If the test fails, it will not cause a test suite failure; instead, an "expected failure" will be recorded. If the test passes, an "unexpected pass" will be recorded instead of a normal test pass. | ||||||
Tags | unit tests,unit tests |