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

Reply via email to