making expected methodcalls easier
Brought to you by:
ivan_r_moore,
mpcooke3
Hi,
I use mockobject to test pretty complex methods which
use private methods etc. MockMaker nicely creates
MockObjects for all type of object which I need to test
the method.
The one thing I have problems with is that for some
methods some MockObjects are used so frequently by
the method to test and private methods that are used by
the method to test, it's (very) hard to count the number
of calls to a MockObject method.
Is it possible to automatically increment the calls-
counter in an addExpected<org_methodname> method
of a MockObject ?
And\or add an increment<org_methodname>Calls()
method to increment the number of calls ?
Cheers,
Joost den Boer