4 ms·
Hm. This is possibly the most simplistic conceivable form of unit testing. Granted, lots of testing takes this form but it's only the start.
by waterlion 13y ago
Hm. This is possibly the most simplistic conceivable form of unit testing. Granted, lots of testing takes this form but it's only the start.
- vpeters25 13y agoMy experience is that a simple "it works" test covers most of the potential bugs in the test subject, so I just write {method name}_itWorks and just call the method inside asserting whatever the method was supposed to do. I only write more tests if there are important business rules (new employees should be created with "Pending" status), or to cover edge cases uncovered by QA.