In this example project I’ll guide you through 4 different scenarios. A basic test example to verify a property has been set. The ability to calculate how many times a method has been called via a mocked class. The ability to stub out method returns which is useful when you need to establish a certain state of your objects under test. Lastly I’ll show you how to do asynchronous testing with expectations in Swift and XCTest.