Tuesday, September 25, 2012
One of the biggest struggles that developers have with adopting Unit Testing, whether it’s Test Driven Development (TDD), Behavior Driven Development (BDD) or even just Test Eventual Development (TED), is the difficulty some code is to test. This is typically when code doesn’t follow the SOLID design principles. If you aren’t familiar with Robert C. Martin’s SOLID Principles, here is a quick summary.
There are five SOLID principles put forth by Robert (Uncle Bob) C. Martin.
Single Responsibility Principle
A class should have one, and only one, reason to change
Did you ever have a Swiss Army knife? 64 features, but you could never...