Code Smell 82 – Tests Violating Encapsulation Objects work fine and fulfill business objectives. But we need to test them. Let’s break them. TL;DR: Don’t write methods with the only purpose of being used in your tests. Encapsulation Violation. Bad interfaces Coupling Don’t break encapsulation. Test must be in full control. If you cannot control…

Read More