rhino mocks requires a return value or an exception to throw
It immediately led me to this wonderful solution.
http://codemonkey.nmonta.com/2008/09/19/previous-method-requires-a-return-value-or-an-exception-to-throw/
Google FTW.
Tips, Tricks, and Lessons Learned from the world of Application Development
rhino mocks requires a return value or an exception to throw
4 comments:
Ah yes, that old familiar, dreaded Rhino Mocks exception. I have burned many an hour trying to debug my test code whenever I got that error. That exception is just one of example of why Rhino Mocks error messages tend to be hard to decode.
Be aware that that particular message does not necessarily indicate that Replay call is missing. As I have discovered, it could also mean that the wrong data type is being used in a Expect call.
Hello,
I have tried to open the link you posted but I get an error.
Can you please post the solution for that error?
Thank you
you need to call
mocks.Replay(object causing the error);
in order to get it to work.
dead links FTW
Post a Comment