Testing · Senior · Question 59 of 75

When is verifying interactions (that a mock was called) the right assertion?

Explanation

For internal collaborators, prefer checking the observable result.

Further reading

Problem with a question

Testing · Senior · question 59

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