bool result = false;SetupResult.For( mockObkect.Foo ) .WhenCalled( invocation=> invocation.ReturnValue = result ) ;
// make calls as usual result = true; On Wed, Oct 8, 2008 at 8:40 PM, Ryan Vice <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a boolean member variable that I'm using setup results to > return results from for testing and I need to have it return false > until after i fire an event and then have it return true. > > Is there a way to do this? > > 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 -~----------~----~----~----~------~----~------~--~---
