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.
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.