Ok, got it, it didn't fit in the 3.5 RC, it's just in the trunk.

On Fri, Sep 26, 2008 at 7:52 AM, Simone Busoli <[EMAIL PROTECTED]>wrote:

> That code was taken from Ayende's blog.
> http://ayende.com/Blog/archive/2008/07/02/Rhino-Mocks-3.5-A-feature-to-be-proud-of.aspx
> Why isn't it working anymore?
>
>
> On Fri, Sep 26, 2008 at 3:25 AM, Nathan Stott <[EMAIL PROTECTED]> wrote:
>
>>
>> Try doing new Action(delegate { .... }) inside of the Do
>>
>> On Thu, Sep 25, 2008 at 5:12 PM, Simone Busoli <[EMAIL PROTECTED]>
>> wrote:
>> > I don't understand why this code doesn't compile:
>> >
>> >       var wasCalled = true;
>> >       var stub = MockRepository.GenerateStub<IDemo>();
>> >       stub.Stub(x => x.StringArgString(Arg.Is("")))
>> >               .Return("blah")
>> >               .Do(delegate { wasCalled = true; });
>> >
>> > Error 1       Cannot convert anonymous method to type 'System.Delegate'
>> because it
>> > is not a delegate type
>> >
>> >
>> > >
>> >
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to