AssertTrue

From ApCoCoAWiki
Revision as of 16:43, 22 June 2010 by 79.208.158.76 (talk) (New page: <command> <title>AssertTrue</title> <short_description>Checks if a condition is true.</short_description> <syntax> AUnit.AssertTrue(Condition: BOOL, ErrMsg: STRING) </syntax> <description...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AssertTrue

Checks if a condition is true.

Syntax

AUnit.AssertTrue(Condition: BOOL, ErrMsg: STRING)

Description

This function checks if the presented condition is true. If not it throws an error and prints the errors message.

  • @param Condition: Boolean value of a condition

  • @param ErrMsg: Error message

Example

$apcocoa/ts/assert.AssertTrue(x=x, "x does not equal x.");