Changes

Jump to: navigation, search

Unit Testing

12 bytes added, 09:41, 10 December 2006
Step 2. A test suite holding all the test cases.
The following is example of bookmarks test suite.
In suite, you could have a setUp() for preparing unit testing, and you could have a tearDown() to clean up after unit testing. The framework will execute them automaticallyin sequence.
In each test case, you need to run assert() to check the test result.
1
edit

Navigation menu