Unit Testing our Design Patterns exercise
So, our little exercise in design patterns is getting quite messy. Which is ironic, considering it’s an exercise in design patterns.
The reason is that I’m mostly trying to be very focused on the Design Patterns book and just fleshing out the example implementations they provide.
Therefore, in order to organize things, I believe this is the right time to add unit tests. As a plus, I also get to test my little gem in an automated fashion.
Here I’ll only go through the RandomMazeBuilder
class since it would be quite lengthy to go through every single file. To see all the other specs, just checkout the repo.