Java again....

Unit tests are for testing units of code (methods) not individual conditions within those units. If you narrow a problem down to a single unit via unit testing, you still need to work out exactly where in that unit things are going wrong.

Besides I'm pretty sure unit testing is beyond the OP at the moment :)

Indeed and the assertions tell you where your going wrong in that unit test. I agree with you on this. Kinda pointless discussion because its just semantics. It depends on what you define as a unit of functionality. One could consider a single statement to be a unit of code (because hey, its often made up of 2+ op codes!) and thus an assertion to check the behaviour of that statement could be considered a unit test :)
 
Back
Top Bottom