Nobody expects Completion Inquisition! – Bartosz Polaczyk – Medium
medium.comTesting whether a given completion handler was called is really simple with XCTestExpectation. Things get complicated if your test case has to verify whether the handler was not called.
Read more...