Skip to content

Commit

Permalink
Additional test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyGoldman committed Oct 16, 2016
1 parent 754e937 commit 9265350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Octokit.Tests/Clients/EventsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public async Task RequestsCorrectUrl()

await client.GetAllIssuesForRepository("fake", "repo");

connection.Received().GetAll<Activity>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/events"), Args.ApiOptions);
connection.Received().GetAll<IssueEvent>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/events"), Args.ApiOptions);
}

[Fact]
Expand All @@ -165,7 +165,7 @@ public async Task RequestsCorrectUrlWithRepositoryId()

await client.GetAllIssuesForRepository(1);

connection.Received().GetAll<Activity>(Arg.Is<Uri>(u => u.ToString() == "repositories/1/issues/events"), Args.ApiOptions);
connection.Received().GetAll<IssueEvent>(Arg.Is<Uri>(u => u.ToString() == "repositories/1/issues/events"), Args.ApiOptions);
}

[Fact]
Expand All @@ -183,7 +183,7 @@ public async Task RequestsCorrectUrlWithApiOptions()

await client.GetAllIssuesForRepository("fake", "repo", options);

connection.Received().GetAll<Activity>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/events"), options);
connection.Received().GetAll<IssueEvent>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/events"), options);
}

[Fact]
Expand All @@ -201,7 +201,7 @@ public async Task RequestsCorrectUrlWithRepositoryIdWithApiOptions()

await client.GetAllIssuesForRepository(1, options);

connection.Received().GetAll<Activity>(Arg.Is<Uri>(u => u.ToString() == "repositories/1/issues/events"), options);
connection.Received().GetAll<IssueEvent>(Arg.Is<Uri>(u => u.ToString() == "repositories/1/issues/events"), options);
}

[Fact]
Expand Down

0 comments on commit 9265350

Please sign in to comment.