--- type: video yt_id: VVU2YVRMdUlfajQtMHdpRFN6bWFQY3RRLjBUR1FwWmlBb0tV videoId: 0TGQpZiAoKU title: "TDD and Unit Testing in iOS | Part 2 Stateful Objects" date: "2020-11-02T18:53:24Z" slug: "tdd-and-unit-testing-in-ios-part-2-stateful-objects" image: name: "tdd-and-unit-testing-in-ios-part-2-stateful-objects.jpg" alt: "TDD and Unit Testing in iOS | Part 2 Stateful Objects" width: 1280 height: 720 status: 'published' description: "Learn how to use the XCTest framework to write unit tests for stateful objects." tags: ['iOS', 'Swift', 'tdd', 'test driven development', 'automated testing'] --- Learn how to use the XCTest framework to write unit tests for stateful objects. đŸ”—Code: [https://github.com/Sam-Meech-Ward/ios-testing-weekly-budget/tree/viewcontroller](https://github.com/Sam-Meech-Ward/ios-testing-weekly-budget/tree/viewcontroller) đŸ”—Entire iOS Playlist [https://www.youtube.com/playlist?list=PL0X6fGhFFNTfUIRSuiVFZmuMGeSUYkNzh](https://www.youtube.com/playlist?list=PL0X6fGhFFNTfUIRSuiVFZmuMGeSUYkNzh)