View source

class thx.DefaultAssertBehavior implements IAssertBehavior

import thx.Assert;

Available on all platforms

Defines the defaiult behavior when thx.Assert static methods are invoked.

Failures throw exceptions of type thx.error.AssertError. Successes do nothing or trace messages if -D trace-asserts is defined. Warnings go directly to trace.

Instance Fields

Toggle inherited fields

function fail(message:String, pos:PosInfos):Void

function new():Void

function success(pos:PosInfos):Void

function warn(message:String, pos:PosInfos):Void