Case of fragile tests: testing something twice
Having one class use another class’s functionality happens a lot in object oriented programming. That’s called delegation and indeed this is how we make stuff work. Upon testing both classes it’s very easy to test some functionality twice which leads to fragile tests.
Post a comment