Packageorg.flexunit.experimental.runners.statements
Classpublic class TheoryBlockRunnerStatement
InheritanceTheoryBlockRunnerStatement Inheritance AsyncStatementBase Inheritance Object
Implements IAsyncStatement

The TheoryBlockRunnerStatement is responsible for reporting whether the theory method with specific arguments was successful.



Protected Properties
 PropertyDefined By
 InheritedmyToken : AsyncTestToken
The AsyncTestToken for the current statment.
AsyncStatementBase
 InheritedparentToken : AsyncTestToken
The AsyncTestToken for the parent of the current statment.
AsyncStatementBase
Public Methods
 MethodDefined By
  
Constructor.
TheoryBlockRunnerStatement
  
evaluate(parentToken:AsyncTestToken):void
Executes the current IAsyncStatement that is wrapping the theory method test.
TheoryBlockRunnerStatement
  
Notifies the anchor if the statement successfully executed and the parent token of any errors that were encountered while running the theory method test.
TheoryBlockRunnerStatement
Protected Methods
 MethodDefined By
 Inherited
sendComplete(error:Error = null):void
If the parentToken has not already been alerted that the statement has completed, alert the parent token that the current statement has finished.
AsyncStatementBase
Constructor Detail
TheoryBlockRunnerStatement()Constructor
public function TheoryBlockRunnerStatement(statement:IAsyncStatement, anchor:TheoryAnchor, complete:Assignments)

Constructor.

Parameters
statement:IAsyncStatement — The IAsyncStatement to execute.
 
anchor:TheoryAnchor — The anchor associated with the theory method.
 
complete:Assignments — The Assignments associated with the current theory method test.
Method Detail
evaluate()method
public function evaluate(parentToken:AsyncTestToken):void

Executes the current IAsyncStatement that is wrapping the theory method test.

Parameters

parentToken:AsyncTestToken — The token to be notified when the the current theory method test has finished all other statements.

handleChildExecuteComplete()method 
public function handleChildExecuteComplete(result:ChildResult):void

Notifies the anchor if the statement successfully executed and the parent token of any errors that were encountered while running the theory method test.

Parameters

result:ChildResult — A ChildResult that contains potential errors encountered during the statements execution.