diff --git a/Octokit.Tests/Clients/PullRequestReviewCommentsClientTests.cs b/Octokit.Tests/Clients/PullRequestReviewCommentsClientTests.cs index 24422023..c6377fad 100644 --- a/Octokit.Tests/Clients/PullRequestReviewCommentsClientTests.cs +++ b/Octokit.Tests/Clients/PullRequestReviewCommentsClientTests.cs @@ -368,8 +368,8 @@ public class PullRequestReviewCommentsClientTests await Assert.ThrowsAsync(() => client.GetAllForRepository("owner", "name", null, ApiOptions.None)); await Assert.ThrowsAsync(() => client.GetAllForRepository("owner", "name", request, null)); - await Assert.ThrowsAsync(() => client.GetAllForRepository(1, ApiOptions.None)); - await Assert.ThrowsAsync(() => client.GetAllForRepository(1, request)); + await Assert.ThrowsAsync(() => client.GetAllForRepository(1, (ApiOptions)null)); + await Assert.ThrowsAsync(() => client.GetAllForRepository(1, (PullRequestReviewCommentRequest)null)); await Assert.ThrowsAsync(() => client.GetAllForRepository(1, null, ApiOptions.None)); await Assert.ThrowsAsync(() => client.GetAllForRepository(1, request, null)); @@ -592,7 +592,7 @@ public class PullRequestReviewCommentsClientTests await client.Delete("owner", "name", 13); - connection.Received().Delete(Arg.Is(u => u.ToString() == "repositories/1/pulls/comments/13")); + connection.Received().Delete(Arg.Is(u => u.ToString() == "repos/owner/name/pulls/comments/13")); } [Fact] diff --git a/Octokit.Tests/Reactive/ObservablePullRequestReviewCommentsClientTests.cs b/Octokit.Tests/Reactive/ObservablePullRequestReviewCommentsClientTests.cs index 1eef8b91..f4834684 100644 --- a/Octokit.Tests/Reactive/ObservablePullRequestReviewCommentsClientTests.cs +++ b/Octokit.Tests/Reactive/ObservablePullRequestReviewCommentsClientTests.cs @@ -91,7 +91,7 @@ namespace Octokit.Tests.Reactive [Fact] public async Task RequestsCorrectUrlMulti() { - var firstPageUrl = new Uri("repos/fakeOwner/fakeRepoName/pulls/7/comments", UriKind.Relative); + var firstPageUrl = new Uri("repos/owner/name/pulls/7/comments", UriKind.Relative); var secondPageUrl = new Uri("https://example.com/page/2"); var firstPageLinks = new Dictionary { { "next", secondPageUrl } }; var firstPageResponse = new ApiResponse> @@ -532,7 +532,7 @@ namespace Octokit.Tests.Reactive [Fact] public async Task RequestsCorrectUrlWithoutSelectedSortingArgumentsMulti() { - var firstPageUrl = new Uri("repos/fakeOwner/fakeRepoName/pulls/comments", UriKind.Relative); + var firstPageUrl = new Uri("repos/owner/name/pulls/comments", UriKind.Relative); var secondPageUrl = new Uri("https://example.com/page/2"); var firstPageLinks = new Dictionary { { "next", secondPageUrl } }; var firstPageResponse = new ApiResponse> @@ -654,7 +654,7 @@ namespace Octokit.Tests.Reactive var client = new ObservablePullRequestReviewCommentsClient(gitHubClient); - var results = await client.GetAllForRepository("owner", "name").ToArray(); + var results = await client.GetAllForRepository(1).ToArray(); Assert.Equal(8, results.Length); gitHubClient.Connection.Received(1).Get>(firstPageUrl,