Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Validate that no conditionals appear inside expectation recording block #97
Hello. I have the following code
It checks that 'updateAccountInfo' was called for each squadRequests member. I'm not sure I understand how it should look like now. Could you assist?
I would probably capture the arguments passed in multiple calls to "updateAccountInfo" into a List, then check the contents of the list afterwards:
Even better, use a verification block (unless partial mocking of "accountInfoUpdater" really is needed):