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

Mock delegate with functional style causes infinite loop #224

Closed
davidshen84 opened this issue Dec 6, 2015 · 0 comments
Closed

Mock delegate with functional style causes infinite loop #224

davidshen84 opened this issue Dec 6, 2015 · 0 comments
Labels
Milestone

Comments

@davidshen84
Copy link

var deleMock = Mock.Of<SomeDelegate>();

Mock.Get(deleMock).Setup(f => f()).Returns("something");

The above code works.

But with functional style:

var deleMock = Mock.Of<SomeDelegate>(f => f() == "something");

Cause the test stop at the line infinitely.

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