There are many strategies for writing unit tests and one of them is called the Red Green Refactor. This video walks you through it.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3530-testing-in-ios/lessons/8