Powered By Blogger

Monday, December 20, 2010

Rules for testing

  1. Write the test cases first.
  2. Never write test case that succeed the first time.
  3. Start with null case or something that doesn’t work.
  4. Don’t be afraid of doing something trivial to make the test work.
  5. Loose coupling & testability go in hand. 
  6. Use mock Object

No comments:

Post a Comment