Is “AssertWasCalled” an Anti-pattern?
One style of unit testing is to verify that methods were called on passed in mocks. In Rhino Mocks the method is “AssertWasCalled”. In this blog post, I’m putting forward my reasoning why these tests are unnecessary, creating more work and indirection — with no…