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
@@ -501,7 +501,7 @@ public class RepositoriesClientTests
var repoName = Helper.MakeNameWithTimestamp("repo-to-delete");
await github.Repository.Create(new NewRepository { Name = repoName });
Assert.DoesNotThrow(async () => { await github.Repository.Delete(Helper.UserName, repoName); });
await github.Repository.Delete(Helper.UserName, repoName);
}
}