Package | org.flexunit.internals.runners.statements |
Class | public class Fail |
Inheritance | Fail ![]() ![]() |
Implements | IAsyncStatement |
Fail
class is responsible for throwing a failure error when it
is evaluated. A Fail
is often created if a critical piece of infomration
is missing and another statement could not be properly generated.
See also
Method | Defined By | ||
---|---|---|---|
Fail(error:Error)
Constructor. | Fail | ||
evaluate(previousToken:AsyncTestToken):void
Throws the error that was initially provided to Fail. | Fail |
Fail | () | Constructor |
public function Fail(error:Error)
Constructor.
Parameterserror:Error — The Error to be thrown when this statement is evalutated.
|
evaluate | () | method |
public function evaluate(previousToken:AsyncTestToken):void
Throws the error that was initially provided to Fail
.
Parameters
previousToken:AsyncTestToken — AsyncTestToken - Passed in, but not used in this method.
|