I actually didn't use GenerateMock<>. I created a MockRepository and
used the Record/Playback syntax.

On Thu, Feb 12, 2009 at 7:56 AM, Shane Courtrille
<[email protected]> wrote:
> I had this _EXACT_ problem in a demo I did at Victoria Code Camp.
> Intended to look into it but haven't had the time yet.
>
> On Wed, Feb 11, 2009 at 5:21 PM, jsearles <[email protected]> wrote:
>>
>> I am trying to assert the number of times a method is called and it's
>> not acting as i'm expecting. I am using version 3.5. I am doing as
>> follows:
>>
>> mock.Expect(x => x.DoSomething()).Repeat.Times(2);
>>
>> [perform actions]
>>
>> mock.VerifyAllExpectations();
>>
>> The problem is that this always passes, whether i change the times to
>> 1 or 3 times. I want to know that the method was called exactly 2
>> times.
>>
>> Thanks,
>>
>> Josh
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to