Skip to content

Common failure: the mock that knows too much

A mock that asserts the exact sequence of internal calls couples the test to the implementation and breaks on every refactor.