Carlos Mendible 12/10/2009

Rhino Mocks Method ‘YYY' requires a return value or an exception to throw.

Read Original

The 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.

Rhino Mocks Method ‘YYY' requires a return value or an exception to throw.

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week