Rhino Mocks Method ‘YYY' requires a return value or an exception to throw.
Read OriginalThe article details a specific error, "Method requires a return value or an exception to throw," encountered when unit testing with Rhino Mocks. It provides code examples showing the problem with a mocked interface method and presents the solution: using the .Return() method to specify a type, even when the actual return value is set via a WhenCalled delegate.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser