From 9b38fff064bd6e45f4444b4f20f9b635de3377be Mon Sep 17 00:00:00 2001 From: Prayank Mathur Date: Sun, 10 Apr 2016 22:00:44 +0530 Subject: [PATCH] Fixed unit tests --- .../Reactive/ObservableRepositoryPagesClientTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Octokit.Tests/Reactive/ObservableRepositoryPagesClientTests.cs b/Octokit.Tests/Reactive/ObservableRepositoryPagesClientTests.cs index 133547cb..da5c1075 100644 --- a/Octokit.Tests/Reactive/ObservableRepositoryPagesClientTests.cs +++ b/Octokit.Tests/Reactive/ObservableRepositoryPagesClientTests.cs @@ -17,8 +17,7 @@ namespace Octokit.Tests.Reactive var options = new ApiOptions(); client.GetAll("fake", "repo", options); - - githubClient.Repository.Page.Received().GetAll("fake", "repo", options); + githubClient.Received().Repository.Page.GetAll("fake", "repo", options); } [Fact] @@ -26,7 +25,6 @@ namespace Octokit.Tests.Reactive { var githubClient = Substitute.For(); var client = new ObservableRepositoryPagesClient(githubClient); - var options = new ApiOptions(); Assert.Throws(() => client.GetAll(null, "repo", new ApiOptions())); Assert.Throws(() => client.GetAll("owner", null, new ApiOptions())); @@ -38,7 +36,6 @@ namespace Octokit.Tests.Reactive { var githubClient = Substitute.For(); var client = new ObservableRepositoryPagesClient(githubClient); - var options = new ApiOptions(); Assert.Throws(() => client.GetAll("", "repo", new ApiOptions())); Assert.Throws(() => client.GetAll("owner", "", new ApiOptions()));