JagCesar / Tesla-API

A iOS, macOS, watchOS and tvOS framework written in Swift to communicate with Teslas vehicle API
MIT License
34 stars 6 forks source link

Move unit tests to own files #19

Closed JagCesar closed 7 years ago

JagCesar commented 7 years ago

Having the unit tests related to a request in its own file is a good thing, i think. Having all of the tests in one big file was quickly going to be an issue.

Also creates a ModelMocks-file that creates mocked instances of our models. Some unit tests are dependant on having valid model instances. Since there are only two now they are in the same file. Might move to separate files in the future if the files becomes to big.