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