FakeTransactionLog's little buffers, we asserted on its state.But how were those buffers filled? Ahhhhhh, yes: they record the history of how
DepositActionmay have some state, but in this case we care about (and assert on) its interactions.A mock is the ideal tool when we care about an object's interactions: which methods were called, what parameters were passed, and so on.
|To format...||use this markup:|
(Supported languages: java, cpp, csharp, c, python.)
|bold text||__some text__|
|italicized text||~~some text~~|
|underlined text||@@some text@@|
|a method or class name||``myMethod(...)``|