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
-~----------~----~----~----~------~----~------~--~---