You can watch this episode by subscribing to Cocoacasts Plus.

Mastering MVVM With Swift

Testing Your First View Model

In this episode, we test the view models of the settings view controller. We start with the SettingsViewTimeViewModel struct. Create a new file in the Test Cases group we created in the previous episode and choose the Unit Test Case Class template.

Cocoacasts Plus

Are you ready to step up your game?

Cocoacasts Plus helps Swift and Cocoa developers take their education serious without being overwhelmed.

Watch Every Tutorial for $10 per Month
Next Episode "Using Stubs for Better Unit Tests"