Unit Test in OS Quick Start
http://www.raywenderlich.com/3716/unit-testing-in-xcode-4-quick-start-guide
http://blog.csdn.net/kesalin/article/details/7097566
有2種選擇,
* 用xcode内置的OCUnit + SenTest
* 用開源的 GHUnit + OCMock
很多人說GHUnit + OCMock比OCUnit強大,但下面這篇文章寫了OCUnit已經改善,是以我還是想先用内置的,畢竟內建得好點。
GHUnit vs. OCUnit
http://longweekendmobile.com/2011/04/15/unit-testing-in-xcode-4-use-ocunit-and-sentest-instead-of-ghunit/
ebook
http://www.amazon.com/Test-Driven-iOS-Development-Developers-Library/dp/0321774183