Test Faked Methods Receive Correct Arguments Using Callbacks

If we need a bit of extra 'thinking power' for passing arguments to our stubbed methods, we can again use callbacks and add any logic required inside those.

We've already looked at a similar strategy for working out return values so this should look familiar to you now.

Lesson Branch: https://github.com/GaryClarke/test-doubles/tree/receive-correct-args-with-callbacks

Complete and Continue  
Discussion

0 comments