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

Async test method must have non-generic Task return type when no result is expected #48

Closed
mikkelbu opened this issue Jun 12, 2018 · 0 comments · Fixed by #121
Closed
Assignees
Milestone

Comments

@mikkelbu
Copy link
Member

We should warn about the following problem

Message: Async test method must have non-generic Task return type when no result is expected

    [Test]
    public async Task<int> AsyncGenericTask()
    {
      return await Task.FromResult(1);
    }

and

    [Test]
    public Task<int> NonAsyncGenericTask()
    {
      return Task.FromResult(1);
    }

and
**

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 a pull request may close this issue.

1 participant