Unit testing using XCode:
*
Note:
Make sure that include unit test case box is checked when creating a new project as shown below: