Testing · Senior · Question 8 of 75

What does “don't mock what you don't own” suggest?

Explanation

A mock of someone else's API encodes your assumptions about it; when the library changes, the mock still passes.

Further reading

Problem with a question

Testing · Senior · question 8

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz