| |
GeekInterview.com > Interview Questions > Testing
| Print | |
Question: i was asked in an interview question,whether have you done unit testing in your project
|
| September 09, 2006 10:13:24 |
#3 |
| myquery |
Member Since: March 2006 Total Comments: 12 |
RE: i was asked in an interview question,whether have ... |
Hi,Unit tests typically exercise small pieces of the code - you may write a new function, then write some unit tests for that function. For example, you might write some code that passes invalid parameters to the function and verifies it handles the error condition gracefully, doesn't crash, etc. Unit testing is almost like a white box testing. |
| |
Back To Question | |