Changed 'await AssertEx.Throws' to 'Assert.ThrowsAsync'.

This commit is contained in:
Kristian Hald
2015-04-20 21:55:07 +02:00
parent 477730bcfa
commit a00ba3b993
2 changed files with 21 additions and 21 deletions
@@ -40,8 +40,8 @@ namespace Octokit.Tests.Clients
{
var client = new RepositoriesClient(Substitute.For<IApiConnection>());
await AssertEx.Throws<ArgumentNullException>(async () => await client.Forks.GetAll(null, "name", null));
await AssertEx.Throws<ArgumentNullException>(async () => await client.Forks.GetAll("owner", null, null));
Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.GetAll(null, "name", null));
Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.GetAll("owner", null, null));
}
}
@@ -64,9 +64,9 @@ namespace Octokit.Tests.Clients
{
var client = new RepositoriesClient(Substitute.For<IApiConnection>());
await AssertEx.Throws<ArgumentNullException>(async () => await client.Forks.Create(null, "name", new NewRepositoryFork()));
await AssertEx.Throws<ArgumentNullException>(async () => await client.Forks.Create("owner", null, new NewRepositoryFork()));
await AssertEx.Throws<ArgumentNullException>(async () => await client.Forks.Create("owner", "name", null));
Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.Create(null, "name", new NewRepositoryFork()));
Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.Create("owner", null, new NewRepositoryFork()));
Assert.ThrowsAsync<ArgumentNullException>(async () => await client.Forks.Create("owner", "name", null));
}
[Fact]