GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  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:11:31 #2
 komal   Member Since: Visitor    Total Comments: N/A 

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