From: Barry K. <bk...@in...> - 2003-05-20 16:33:50
|
st...@m3... wrote: > Our intention is that for some sort of call object there should be something like methodOne.exepectBefore(methodTwo) assertion. Our view was that most of the time people would either care a lot or not at all about ordering, and that we'd add this mechanism for special cases like yours. Actually, ordering is not the biggest issue, but rather count. For example a strategy/flyweight that adjust a traders buyingpower might use any number of getters zero or more times, but should only adjust the actual buyingpower amount once (since in our case it will send an event which will trigger other actions in the domain model). I don't see how to do this with 0.9 as the Mock is constructed with a single implementation of CallableAddable. Am I missing something? -bk |