# Methods

`-addTest`
  Adds a testcase to the set
`-addTestcase:withSelector:`
  Adds a testcase to the set
`-proceedOnFailure:`
  By default the underlying flag equals NO so that assertion failures will throw an ``
`-runTestcases`
  Starts the tests

### addTest

Adds a testcase to the set

See Also:

> addTestcase:withSelector:

>     - addTestcase: (ECTestcase *) testcaseToAdd withSelector: (SEL) methodToCall;

##### Parameter Descriptions

> `testCaseToAdd`
>   testcase to add
> `withSelector`
>   underlying method to call

method result
  self

### addTestcase:withSelector:

Adds a testcase to the set

See Also:

> addTest

>     - addTestcase: (ECTestcase *) testcaseToAdd withSelector: (SEL) methodToCall;

##### Parameter Descriptions

> `testCaseToAdd`
>   testcase to add
> `withSelector`
>   underlying method to call

### proceedOnFailure:

By default the underlying flag equals NO so that assertion failures will throw an ``

>     - proceedOnFailure: (BOOL) doIt;

##### Parameter Descriptions

> `doIt`
>   if YES then the `` will NOT be thrown in case of an assertion failure. The result (failure) will be marked in and returned by the result array and the test run will proceed.

method result
  self

### runTestcases

Starts the tests

>     - (NSArray *) runTestcases;

method result
  an error of results of type ``

##### Discussion

For each testcase being added this method initiates the following methods in their given order:

- setup
- cleanup

(Last Updated August 27, 2006)