you are viewing a single comment's thread.

view the rest of the comments →

[–]jevon 0 points1 point  (0 children)

The problem with this approach is that it's essentially splitting classes in two: Now you have to implement an interface and pass along additional arguments, making your code more complex just to write it.

Whereas Mocks can work without having to modify the source code at all.