You can watch this episode by subscribing to Cocoacasts Plus.

Unit Testing Core Data Models

Writing Better Unit Tests

Unit Testing Core Data Models
1 Setting Up the Project 04:11
2 Setting Up the Core Data Stack Plus 07:02
3 Unit Testing a Core Data Model Plus 05:59
4 Writing Better Unit Tests Plus 11:19
5 Writing More Unit Tests Plus 05:06

Let's start with the updatedAtAsDate computed property. Change the name of the unit test to testUpdatedAtAsDate_NotNil(). We need to implement a second unit test for the updatedAtAsDate computed property if the updatedAt property doesn't have a value.

Purchase Course

Purchase Unit Testing Core Data Models and access it whenever you want and for as long as you want.

Join Cocoacasts Plus

Join Cocoacasts Plus and access every 350+ tutorials including Unit Testing Core Data Models.

Next Episode "Writing More Unit Tests"