pfft :-)
On Tue, Aug 17, 2010 at 8:16 PM, David Tchepak <[email protected]> wrote:
> public interface IFoo {
> void DoFoo();
> }
>
> var foo = MockRepository.GenerateStub<IFoo>();
>
> //Do something when void method is called:
> foo.Stub(x => x.DoFoo()).WhenCalled(x => RunSomeCode());
>
> //Assert void method was called
> foo.AssertWasCalled(x => x.DoFoo());
>
>
> Hope this helps.
> Regards,
> David
>
>
> On Wed, Aug 18, 2010 at 5:36 AM, samah <[email protected]> wrote:
>
>> Hi all,
>>
>> How can we stub a method that returns nothing using Rhino Mocks?
>>
>> Thanks,
>>
>> -Samah
>>
>> --
>> 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]<rhinomocks%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/rhinomocks?hl=en.
>>
>>
> --
> 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]<rhinomocks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhinomocks?hl=en.
>
--
Tim Barcz
Microsoft C# MVP
Microsoft ASPInsider
http://timbarcz.devlicio.us
http://www.twitter.com/timbarcz
--
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.