Is there any advantage to writing both classist and mockist unit tests for a single method?
问题 One can write unit tests either the classicist or the mockist way as per http://martinfowler.com/articles/mocksArentStubs.html Will writing both classist and mockist unit tests for a single method increase robustness of the code since both state and behaviour is tested? My colleagues seem to just be mocking all the way, and as they're the "example", it is assumed that I will be mocking as well unless I have a good reason not to. (I'm new to unit testing). However, I feel that testing just the