Hi Vlad,
Is it less undefined if all expectations are matched with calls to
VerifyAndClearExpectations()? So: expectation is set, a call is made,
then VerifyAndClearExpectations, then a second expectation, a call,
then another VerifyAndClearExpectations I tried it for the example
below and it failed, so I assume not.
Another approach I'm taking is to replace all global objects with
pointers and functions to allocate the objects in SetUp. This seems
to be working so far.
Thanks,
hoj
(Oops. CC'ing list)
Hi Vlad,
Is it less undefined if all expectations are matched with calls to
VerifyAndClearExpectations()? So: expectation is set, a call is made,
then VerifyAndClearExpectations, then a second expectation, a call,
then another VerifyAndClearExpectations I tried it for the example
below and it failed, so I assume not.
Another approach I'm taking is to replace all global objects with
pointers and functions to allocate the objects in SetUp. This seems
to be working so far.