Unit testing using Xcode

Note:

Testing a block of code or some method

Testing asynchronous block of code

Measuring Performance of a block of code

Running Test Suits