How to Use Protocols for Swift Mocking and Stubbing | Quality Coding
Mocks can make unit tests easier to write. But how do we mock with Swift's types? With protocols and extensions.