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

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes