TDD:simply mocking a class is not necessarily the best practice

simply mocking a class is not necessarily the best practice either—it might be better to refactor the code so that all the information the method needs is obtained separately, separating out the acquisition of the data from the computation of the data. 

posted on 2014-04-28 15:03  幸福框架  阅读(228)  评论(0编辑  收藏  举报

导航

我要啦免费统计