mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
Fix broken unit tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
@@ -46,8 +47,9 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
client.GetForRepository("fake", "repo");
|
||||
|
||||
gitHubClient.Issue.Comment.Received().GetForRepository("fake", "repo");
|
||||
}
|
||||
gitHubClient.Connection.GetAsync<IReadOnlyList<GitHubClient>>(
|
||||
new Uri("repos/fake/repo/issues/comments", UriKind.Relative), null, null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task EnsuresArgumentsNotNull()
|
||||
@@ -72,7 +74,8 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
client.GetForIssue("fake", "repo", 3);
|
||||
|
||||
gitHubClient.Issue.Comment.Received().GetForIssue("fake", "repo", 3);
|
||||
gitHubClient.Connection.GetAsync<IReadOnlyList<GitHubClient>>(
|
||||
new Uri("repos/fake/repo/issues/3/comments", UriKind.Relative), null, null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user