Faking and Mocking in Swift
Testing functions that returns values is usually straight forward. Call the function with or without parameters, and assert the expected value. In some situations where your function does not return a value, this could …
Testing functions that returns values is usually straight forward. Call the function with or without parameters, and assert the expected value. In some situations where your function does not return a value, this could …
In pure Swift or Objc projects it is pretty much straight forward to do unit testing. You just have to make sure you add the class under test to your test target so that the code is accessible from the test class.