flexunit.framework

Interface Test


All known implementing classes
BaseTestRunner, ResultPrinter, TestCase, TestSuite, TestSuiteTestListener

public interface Test
extends Reflective

A Test can be run, with the results collected.

See also
TestResult



Property Summary

Properties inherited from class Reflective
className


Method Summary
countTestCases() : Number
The number of test cases in this test.
getTestMethodNames() : Array
Returns the names of the test methods for this test.
runWithResult(result:TestResult) : void
Runs the tests, populating the result parameter.
toString() : String                                        


Method Detail

countTestCases Method

public function countTestCases() : Number

The number of test cases in this test.

Returns
Number — A Number representing the count of test cases in this test.

getTestMethodNames Method

public function getTestMethodNames() : Array

Returns the names of the test methods for this test.

Returns
Array — Array of method names for this test

runWithResult Method

public function runWithResult(result:TestResult) : void

Runs the tests, populating the result parameter.

Parameters
result:TestResult — TestResult instance to be populated

Returns
void

toString Method

public function toString() : String

Returns
String