Rhino Mocks Method ‘YYY' requires a return value or an exception to throw.
Yesterday I found myself stucked with a strange exception while programming a unit test using Rhino Mocks.
Supose you have an interface like the following one.
1public interface ITest 2{ 3object Freak(); 4} You can try a mock like the following:
1var test = MockRepository.GenerateMock(); 23test.Expect(t => …