???????6.2????????械?????KVC???????????

?????????????????

????????????????????????????写??????????????????KVC??????????????????????????????????target??????????????????????????锟�???????????些??????????????

???????7???浠�????2????????

??????????????????????

???????????????“??????????”???????????懈??????渭????????????????????????????

??????????????

???????OCUnit????????????????????????????梅?????谩???????XCode???????????????????????????????????“Include Unit Tests”????????????????????????????????渭????????????????“Objective-C test case class”???????

????????????校??????setUp????????????tearDown??????????????????????????????????????????????????--???????????????????????????????????????????test?????????????????????????????斜?写?????????????????STAssertxxxxx???????????????????????写??????胁??Product->Test???????????????

?????濉�??????????TDD??

??????????????TDD????????????TDD??????????????????写?????????????????????????????????????????????????????????????????“?????????????????????????????????????????????????????????????????????????????????写??????????????貌??????????????????????????????????????????????????????????????”?????????????????????渭???????????????????????????????????????????????????

????????????写????????写????????????????????????????????????写????????????????????????濉�???????????????????????????写?胁??????斜?写???锟�????????????????????????????TDD???????

???????????

???????????????????????????写?????????????????????????椤�?????????????????????????????????????些?????????????????????????????锟�??????????????????????????????????煤????????效???????

?????????????泄???????????????????些?????????????????纭�??????????????????????????????????????????????????????????????????????????????????????????????谢????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????泄???????