??????????νTDD??????????????????裺??????е???????????????????????????????????У??????????е????????????????????????????1???TDD???????????

????TDD?????Test Driven Development???????????????????????????????????????????“??????”?????儷?????????????????????????????????????????????????????????е?????????????????????????????????????????????????????в????????????????case?????????????????????????衣

???????????????????????£?

?????? ??????е??????????????

?????? ?????????????????????У??????????е????????????

???????????Adam Bar??????Bradley Braithwaite?????o????????Щ??????????????????TDD???Щ???????о??TDD??????????????????????????

????1???????е???????????е?????????????á? ??It's better to have no unit tests than to have unit tests done badly ??

????2???????????????????????Ч????????????????????????á?

?????????????Mocking Framework VS ??????????

??????????????????????ì?????????Mocking Framework???2??????????????á????????????????????????????

???????????????????Щ?????????????????Mocking framework????????????????е???????????????????

?????????????й??????????????????——???????????????????half-arsed????????????????????????????

???????????????????£????????stubs?????????mocks——???????????????????Mocks?????????????????????????м????????????????????????????????д??????????????????????????????? TDD???′?????Mock??Stub??Test Case????????????????????????Test Case?е?Mock????????????????д?????????????????????TDD??????????????????У?????????????Mock??Stub????????????????????????????????????????????????????????????Mock??Stub???????????????????????μ???????TDD?У?Test Case????????????????Test Case?????????????????????????????????Ч???

??????????????????????????????stubs??????????????????????????????????? ??????????????????????spaghetti-flavoured mock ?????????????