3 ms·
My 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 me
by vpeters25 13y ago
My 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.