Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect exception message when ReturnLazily signature does not match #41

Closed
adamralph opened this issue Feb 10, 2013 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@adamralph
Copy link
Contributor

var foo = A.Fake<IFoo>();
A.CallTo(() => foo.Baz()).ReturnsLazily((object fake, object arg) => 0);
foo.Baz();

throws an exception with the message

The faked method has the signature (), but invokes was used with (System.Object, System.Object).

The exception message should be

The faked method has the signature (), but returns lazily was used with (System.Object, System.Object).

@ghost ghost assigned philippdolder Feb 10, 2013
@adamralph
Copy link
Contributor Author

Fixed in 63eedc4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants