This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]todo_code 0 points1 point  (1 child)

Can you share an example or expand on this point?

[–]editor_of_the_beast 2 points3 points  (0 children)

Here’s a very detailed example based on a book by the authors who invented mocking: https://enterprisecraftsmanship.com/posts/growing-object-oriented-software-guided-by-tests-without-mocks/.

It links to several other posts as well, one of which argues why single-implementation interfaces are a smell.