When you test a module, especially when you use TDD to drive the design of the code, you shouldn’t test classes or functions in isolation. Going “too low” with the unit tests (class by class, method by method) takes away almost all “Characteristics of good tests” (as described above). That’s because you don’t test the key element of the design, that is the interactions between classes/functions. Such a test suite exhibits an excessive usage of a mocking framework (and it’s a sign of a bad test suite; probably a large number of tests only check that method A invokes method B).
트럼프, 전쟁 중 백악관에 메시 초청해놓고 “호날두는 대단해”
,推荐阅读PDF资料获取更多信息
Anyway, here are 10 of my favorite Pokémon, just for how strange they are.
Follow topics & set alerts with myFT
Continue reading...