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.
Subscribe to Cocoacasts Plus to watch this episode.
Unit Testing Core Data Models
Writing Better Unit Tests
by Bart Jacobs in Core Data
Swift 4
Xcode 9
iOS 11
Unit Testing Core Data Models
-
04:11
-
2 Setting Up the Core Data Stack
07:02
-
3 Unit Testing a Core Data Model
05:59
-
4 Writing Better Unit Tests
11:19
-
05:06