charlesprabhu
08-23-2021, 04:30 AM
Create a JSON test file.
Grab some JSON from your API and save it to a file in your project.
Create a test case.
Create a new XCTestCase subclass, then write a test method.
Load the JSON data into the test case.
Call your parser with the JSON data.
Make assertions on the result.
Grab some JSON from your API and save it to a file in your project.
Create a test case.
Create a new XCTestCase subclass, then write a test method.
Load the JSON data into the test case.
Call your parser with the JSON data.
Make assertions on the result.