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.

@stakx stakx added the bug label Jul 11, 2017
@stakx stakx added this to the v4.8.0 milestone Nov 21, 2017
@stakx stakx closed this as completed Nov 21, 2017
@devlooped devlooped locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants