|
From: Steve F. <st...@m3...> - 2004-07-06 21:52:34
|
Could you stub methods A..E, rather than setting expectations on them? S Paul Brousseau wrote: > It's not so much a problem as a possible inconvinience at times. I > think my sample below didn't properly set up the situation. Let's > say that I have method X that I want to test, but to get to the right > state, I have to call methods A, B, C, D, and E, each of which result > in calls to the Mock object. It would be easier for me to not have > to worry about counting the various method calls in that setup stage. > If I could wipe out my expectations, then I would only have to check > the stuff that goes along with method X. So there's nothing wrong > with calling Verify multiple times, but I'd like not to have to think > about verifying the results of methods A-E (say, because I've already > verified that they work elsewhere). > |