CCUnit project page | CCUnit home page |
#include <CCUnitTestCase.h>
For each test implement a function which interacts with the case. Verify the expected results with assertions specified by calling CCUNIT_ASSERT on the expression you want to test:
void testAdd () { int result = value1 + value2; CCUNIT_ASSERT (result == 5); } ... void MathTest_newTestCase_testAdd () { return ccunit_newTestCase ("addTest", "add test", addTest); }
Data Fields | |
const char * | name |
test case name | |
const char * | desc |
test description | |
void(* | runTest )() |
run test function |
|
test description
|
|
test case name
|
|
run test function
|
|
hosts this site. |
Send comments to: CCUnit Developer |