mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
another try to get tests work
This commit is contained in:
@@ -232,7 +232,8 @@ namespace Octokit.Tests.Clients
|
||||
|
||||
await client.GetAllAssets("fake", "repo", 1, options);
|
||||
|
||||
connection.Received().GetAll<ReleaseAsset>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/releases/1/assets"),
|
||||
connection.Received().GetAll<ReleaseAsset>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/releases/1/assets"),
|
||||
null,
|
||||
"application/vnd.github.v3", options);
|
||||
}
|
||||
|
||||
@@ -188,6 +188,8 @@ namespace Octokit.Tests.Reactive
|
||||
[Fact]
|
||||
public void RequestsTheCorrectUrlWithApiOptions()
|
||||
{
|
||||
var expectedUrl = string.Format("repos/{0}/{1}/releases/1/assets", "fake", "repo");
|
||||
|
||||
var gitHubClient = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableReleasesClient(gitHubClient);
|
||||
|
||||
@@ -199,9 +201,11 @@ namespace Octokit.Tests.Reactive
|
||||
};
|
||||
|
||||
client.GetAllAssets("fake", "repo", 1, options);
|
||||
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<ReleaseAsset>>(
|
||||
new Uri("repos/fake/repo/releases/1/assets", UriKind.Relative), Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2), null);
|
||||
Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2),
|
||||
null);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user