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

Missing .ThrowsAsync() extension for Task-returning methods #294

Closed
gzak opened this issue Oct 11, 2016 · 2 comments
Closed

Missing .ThrowsAsync() extension for Task-returning methods #294

gzak opened this issue Oct 11, 2016 · 2 comments
Assignees

Comments

@gzak
Copy link

gzak commented Oct 11, 2016

Currently, there's only a ThrowsAsync extension for methods which return Task, but there's no equivalent for methods which return the non-generic Task type (a "void" Task, essentially).

The same is true for ReturnsAsync, though it's questionable how useful it would be.

@neraath
Copy link

neraath commented Jan 9, 2017

+1

@stakx stakx self-assigned this Jun 3, 2017
@stakx
Copy link
Contributor

stakx commented Jun 3, 2017

I've prepared an implementation for ThrowsAsync for non-generic Tasks, which I'll be PR-ing in the next few days, but I'm omitting ReturnsAsync for now. I can't see any practical use for it.

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

No branches or pull requests

3 participants