Remember from Core Data Fundamentals that we need a managed object context to instantiate a managed object. To freshen up your memory, this is what it takes to create a note.
Subscribe to Cocoacasts Plus to watch this episode.
Unit Testing Core Data Models
Setting Up the Core Data Stack
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 
- 
      
      11:19 
- 
      
      05:06