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

Add support for ValueTask<TResult> to DefaultValue.Empty #529

Merged
merged 4 commits into from
Nov 23, 2017

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Nov 23, 2017

#506 added support for ValueTask<TResult> to the ReturnsAsync method group. If Moq has support for ValueTask<TResult> in one place, it should consistently support that type everywhere.

This PR therefore adds special handling of that type for DefaultValue.Empty: Moq will produce a completed ValueTask<TResult> containing an empty TResult value for type members having a return type of ValueTask<TResult>.

@stakx stakx added this to the v4.8.0 milestone Nov 23, 2017
@stakx stakx merged commit 70c4dbb into devlooped:develop Nov 23, 2017
@stakx stakx deleted the empty-valuetask branch November 23, 2017 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant