Skip to main content

UnitTestFails

Type

statement

Summary

Make a failing unit test assertion

Syntax

broken test <Condition>

Description

Make a unit test assertion, in the expectation that it will fail, and without providing a description or reason. It is usually more helpful to use UnitTestFailsDescriptionAndReason.

Examples

broken test 1 > 2

statement: UnitTestFailsDescriptionAndReason

Thank you for your feedback!

Was this page helpful?