Testing Shorthand: Use a Subclass of the Real Object Under Test

In “Unit Testing in Swift 2.0”, Jorge Ortiz adapts solid testing principles to Swift. If you don’t have a strong testing background, make sure to watch his talk for key insights into the How using Swift!

He uses mocks for the object under test. Which is clever, because you can hook into its behavior.