Refactoring Part 2: Tests and Seams

In Part 1 we took a look at how to get our Monty-Hall simulator into a test harness so we could start refactoring to add N doors functionality.  In this part, we’ll look at how we can refactor and write test cases to make our code more maintainable while making new functionality easy to add. […]