It should be there in 3.5You can also try the Do() On Sun, Feb 8, 2009 at 10:49 AM, Peter Morris <[email protected]> wrote:
> > Thanks for the reply! > > I've downloaded the latest release from your site and WhenCalled isn't > available. Do I need to connect to your source control and build myself, > or > should it be in a release? > > > Thanks > > > Pete > ==== > http://mrpmorris.blogspot.com > http://www.capableobjects.com - Think domain, not database > > ----- Original Message ----- > From: "Ayende Rahien" <[email protected]> > To: <[email protected]> > Sent: Saturday, February 07, 2009 10:52 PM > Subject: [RhinoMocks] Re: Getting .Stub to return a new value each time it > is called > > > > WhenCalled( x=> x.ReturnValue = new MemoryStream()); > > > > On Sun, Feb 8, 2009 at 12:49 AM, Peter Morris <[email protected]> > wrote: > > > >> > >> mockFileSystem.Stub(fs => fs.CreateFileStream(null, FileMode.Append, > >> FileAccess.Write, FileShare.None)) > >> .IgnoreArguments() > >> .Return(new MemoryStream()); > >> > >> Every time I call mockFileSystem.CreateFileStream I will get back the > >> same instance of the MemoryStream, can someone please tell me how to > >> return a new MemoryStream each time? > >> > >> > >> 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 -~----------~----~----~----~------~----~------~--~---
