Ensure no async void methods

Added self tests to find async void methods. It found some cases where
we passed an async lambda to a method that did not accept Action<Task>
or Func<Task>. I fixed those tests.
This commit is contained in:
Haacked
2014-11-07 16:05:53 -08:00
parent 6be4c50e60
commit 1b4d02b142
9 changed files with 77 additions and 4 deletions
@@ -96,7 +96,7 @@ public class PullRequestReviewCommentsClientTests : IDisposable
var createdComment = await CreateComment(body, position, pullRequest.Sha, pullRequest.Number);
Assert.DoesNotThrow(async () => { await _client.Delete(Helper.UserName, _repository.Name, createdComment.Id); });
await _client.Delete(Helper.UserName, _repository.Name, createdComment.Id);
}
[IntegrationTest]