What's wrong with the Record/Reply/Verify model for mocking frameworks
Posted by: eXtensible mind,
on 26 Dec 2007 |
View original | Bookmarked: 0 time(s)
Most mocking frameworks, and especially the two most popular ones, Rhino Mocks and TypeMock, use a record/reply/verify model where the developer invokes members on the mock during the record phase, does a replay to prepare the mock for those expectations, and finally do a verify before the test ends. From Rhino documentation (emphasis mine): Record & Replay model - a model that allows for recording actions on a mock object and then replaying and verifying them. All mocking frameworks uses this...