Was asked internally what the difference between SetupResult and Stub
was...I caught myself fumbling and my answer wasn't/isn't clear:

public interface ISample
{
    bool CanRead { get; set; }
    bool CanWrite { get; set; }
    bool DataAvailable { get; set; }
}

usage:

var stubSample = MockRepository.GenerateStub<ISample>();

stubSample.Stub(x => x.CanRead).Return(true);
SetupResult.For(stubSample.CanRead).Return(true);

*What is the difference?*

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to RhinoMocks@googlegroups.com
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