|
From: Marcus B. <ma...@la...> - 2003-10-29 14:22:50
|
Hi... Jason Sweat wrote: > One more thought I would like to have clarified on this subject: > You should never test private methods, only the public API for an object. That > way you are free to refactor the private methods without altering your test > case. Good question and a hot topic of debate. When you have finished a module I would say definitely leave out the private method tests. The same with protected ones unless you are specifically testing a subclass. When I am actually coding and am getting confused, I will write quick private method tests, just to see what is going on. > Jason yours, Marcus -- Marcus Baker, ma...@la..., no...@ap... |