It's a fake, not a mock.
Mocks and fakes are both test doubles.
> And thr point is to structure your code in such a way that
Sometimes it's not your code. Sometimes you want to change legacy code and want tests to prove that your changes don't break anything.
Life would be so much easier if there were just one way to test, wouldn't it?
It's a fake, not a mock.
Mocks and fakes are both test doubles.
> And thr point is to structure your code in such a way that
Sometimes it's not your code. Sometimes you want to change legacy code and want tests to prove that your changes don't break anything.
Life would be so much easier if there were just one way to test, wouldn't it?