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