Mocking file output for unit testing

Having a unit test harness makes modifying code a lot easier, because it lets you quickly spot anything you've broken as you're coding. But when you've got legacy code that doesn't have unit tests, getting the code into a test harness can be a lot of work. You've got code connecting to databases, touching the […]