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

Manually set up inner mocks should be discoverable by Moq #783

Merged
merged 6 commits into from
Mar 10, 2019

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Mar 10, 2019

During fluent / recursive setup and verification, Moq tries never to execute user-provided delegates to figure out return values (and from there, inner mocks). There's one (as yet uncovered) case where we could get at the return value without executing a callback: mock.Setup(...).Returns(value), as opposed to ...Returns(... => value).

Closes #110.

@stakx stakx added this to the 4.11.0 milestone Mar 10, 2019
@stakx stakx merged commit 885333c into devlooped:master Mar 10, 2019
@stakx stakx deleted the issue-110 branch March 10, 2019 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant