Mocks that specify essential implementation
Mocks that specify essential implementation
Submitted by Brian Marick on Fri, 28/05/2010 - 16:22.James Shore said something in two tweets that I’ve abbreviated as follows:I’ve never liked mock objects. At best, they’re a necessary evil. At worst, a meaningless “test” that overspecifies the code under test.I tweeted back that “I’m finding mocks that overspecify the code under test are a sign that I’m making code that doesn’t express [...]
