Open do-you-dare opened 8 years ago
When unit testing, sometimes, instead of mocking some methods directly, we mock the calls that that method does. You can see an example here. This way our tests become very coupled with the implementation of methods it shouldn't be testing.
When unit testing, sometimes, instead of mocking some methods directly, we mock the calls that that method does. You can see an example here. This way our tests become very coupled with the implementation of methods it shouldn't be testing.