Thank you for coming to my talk! If you found it helpful, please
Here are the slides for Making Swift Mock Objects More Powerful.
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.
Disclosure: The book link below is an affiliate link. If you buy anything, I earn a commission, at no extra cost to you.Refactoring: The Improving the Design of Existing Code by Martin Fowler
As I emphasized in my talk, unit tests are a tool to empower refactoring.
The Refactoring book completely changed the way I code.