How to effectively verify unit test side effect without code generation in Swift — Often we need to unit test code with side-effects that interact with other parts of your system using abstraction — protocols in Swift. There are many techniques to build that abstraction and verify if our code works as expected: stubbing, spying, dummying etc. Previously, I made a deep dive into…