It should be, I would be happy to get a patch for that.
On Mon, Nov 10, 2008 at 9:41 PM, Robin Clowers <[EMAIL PROTECTED]>wrote:
>
> Ok, that does work, I updated the Wiki to reflect that. Do you think
> it would be possible to overload AssertWasCalled so it can take a Func
> as well as an Action so that you could use return?
>
> On Nov 10, 11:18 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > Hm...Something like that worked for me.
> > You can do :
> >
> > x = { var ignored = x.Name; }
> >
> > And that will work, but it is ugly
> >
> > On Mon, Nov 10, 2008 at 9:10 PM, Robin Clowers <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> > > Thanks for the reply Oren, but that does not seem to compile either,
> > > since the Action delegate return type is void.
> >
> > > On Nov 10, 9:38 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > > > customerMock.AssertWasCalled(x => { return x.Name});
> >
> > > > On Mon, Nov 10, 2008 at 6:54 PM, Robin Clowers <
> [EMAIL PROTECTED]
> > > >wrote:
> >
> > > > > It seems like this must have come up before, but I am not able to
> find
> > > > > answer; How do you Assert that a property was read? In the wiki
> it
> > > > > says you can do this syntax:
> >
> > > > > customerMock.AssertWasCalled(x => x.Name);
> >
> > > > > But that does not compile "Only assignment, call, increment,
> > > > > decrement, and new object expressions can be used as a
> statement"...
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---