Rhino.Mocks Goodness
What are you saying about setupping mock code this way?
mockMainPresenter.SetupResult(mainPresenter.CurrentProject,prj);
mockMainPresenter.SetupResult(mainPresenter.Repository,repository);
Clear, concise, and ReSharperable*
In short, I added some of the convenience methods I removed earlier because... well, they are so convenience :-)
What I added is the SetupResult() and ExpectAndRetrun() and their deriatives. I still don't think that ExpectAndThrow() should return, as you may want to use this with a void returning method, and then you'll get a compiler error.
* Did I just created a word?
"You don't have to know how the computer works, just how to work the computer." -- Tech Support Slogan
Comments
Comment preview