Posted December 1st, 2016.
One way to start coding when doing outside-in TDD is with a more or less system wide test that surrounds quite a bit of yet-to-be written code. For your basic web app it might be a test that calls a method in some kind of web controller class and asserts that that call results in a specific value being written to a database from a...
Posted March 31st, 2016.
The short version Whenever you want to accomplish both task 1 and task 2, don’t end up with a class that does task 1 and then uses a collaborator class to do task 2. Instead, use one class to do the the orchestration of two collaborator classes, one for each task. The longer version Some things are hard to test. Sometimes this is...