5. Unit tests are hard! - lilbond/testable-code GitHub Wiki

On the contrary, the unit tests are quite easy to write.

Real problems are some code smells and/or anti-patterns that make it hard to test a unit.

(sample demo code)