|
|
|
|
|
by japherwocky
6065 days ago
|
|
I think what the author is getting at is testing a particular method on an object without having to mock up all the data required by the entire object. I guess? Agreed that the whole article would be more useful without the sarcasm. |
|
The tests are not the goal - a working product is. That's just making a trade-off between less lines in a test -vs- code that doesn't explode mid-transaction when that null suddenly occurs in a real-world scenario. If I'm supposed to write my code properly, testies should not be too lazy while writing the tests.