Fixed my test framework problem :-)
http://stackoverflow.com/questions/525578/why-are-all-my-visual-studio-test-results-not-executed
With regards to Rhino Mocks the following works.
var mockFileSystem = MockRepository.GenerateMock<IFileSystemService>();
mockFileSystem.Stub(fs => fs.FileExists("c:\\temp.bmp")).Return(true);
mockFileSystem.Stub(fs => fs.CreateFileStream(null, FileMode.Append,
FileAccess.Write, FileShare.None))
.IgnoreArguments()
.Return(null) //Replaced with result from following line
.WhenCalled(invocation => invocation.ReturnValue = new MemoryStream());
Thank you so much! Rhino Mocks *really* improves the quality of my working
life :-)
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com - Think domain, not database
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---