Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#37 Expect without needed Return throws RemotingExsception

open
nobody
nmock2 (11)
5
2010-01-22
2010-01-22
Anonymous
No

Please throw a more dexscriptive Exception for the following test.

public interface IBoolReturn
{
bool Method();
}

[TestFixture]
public class ErrorReturnValue
{
[Test]
public void ReturnValueTest()
{
Mockery mock = new Mockery();
IBoolReturn boolReturn = mock.NewMock<IBoolReturn>();
Expect.Once.On(boolReturn).Method("Method").WithAnyArguments();
boolReturn.Method();
mock.VerifyAllExpectationsHaveBeenMet();
}
}

Discussion