Thank you!
Thank you for coming to my talk! If you found it helpful, please
- Join my newsletter. You’ll also receive the Objective-C and Swift code snippets I use to quickly write tests.
- Consider inviting me to speak, train or coach on unit testing and Test Driven Development.
Slides
Here are the slides for Making Swift Mock Objects More Powerful.
Code
And here is sample code. Build SwiftMocks.xcworkspace and run the tests. Experiment with changing things in Waiter.swift to see how the tests report those changes.
The official repository of Swift Hamcrest is here. However, I have a couple of pull requests that are still waiting, so the sample code uses my fork with those changes.
Recommended Book

As I emphasized in my talk, unit tests are a tool to empower refactoring.
The Refactoring book completely changed the way I code.
Disclosure: Please note that the book link above is an affiliate link. If you buy anything, I earn a commission, at no extra cost to you.