mardi 19 février 2019

Swift Unit Testing: Checking for equality of two objects of the same class

How would you create a test function to compare the contents of two objects of the same class?

Background: I have a function which extracts data from a CSV file and uses that data to create an object. I want to know if this function is generating the correct output. I am new to unit testing and I am aware it is a good skill to have.

Aucun commentaire:

Enregistrer un commentaire