My Moq code:
===================
var mock = new Mock();
// start “tracking” sets/gets to this property
mock.Stub(v => v.Value);
// provide a default value for the stub’ed property
mock.Stub(v => v.Value, 5);

Now I can do:

IHaveValue v = mock.Object;
// Initial value was stored
Assert.Equal(5, v.Value);

// New value set which changes the initial value
v.Value = 6;
Assert.Equal(6, v.Value);
=====================

How can I do the similar stub using Rhino? Thanks.

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

Reply via email to