mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
feat: Removing accept header previews (#2515)
This commit is contained in:
@@ -29,7 +29,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAll("fake", "repo");
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<Release>>(
|
||||
new Uri("repos/fake/repo/releases", UriKind.Relative), Args.EmptyDictionary, null);
|
||||
new Uri("repos/fake/repo/releases", UriKind.Relative), Args.EmptyDictionary);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -41,7 +41,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAll(1);
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<Release>>(
|
||||
new Uri("repositories/1/releases", UriKind.Relative), Args.EmptyDictionary, null);
|
||||
new Uri("repositories/1/releases", UriKind.Relative), Args.EmptyDictionary);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -60,7 +60,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAll("fake", "repo", options);
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<Release>>(
|
||||
new Uri("repos/fake/repo/releases", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
|
||||
new Uri("repos/fake/repo/releases", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -79,7 +79,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAll(1, options);
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<Release>>(
|
||||
new Uri("repositories/1/releases", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
|
||||
new Uri("repositories/1/releases", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -342,7 +342,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAllAssets("fake", "repo", 1);
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<ReleaseAsset>>(
|
||||
new Uri("repos/fake/repo/releases/1/assets", UriKind.Relative), Args.EmptyDictionary, null);
|
||||
new Uri("repos/fake/repo/releases/1/assets", UriKind.Relative), Args.EmptyDictionary);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -354,7 +354,7 @@ namespace Octokit.Tests.Reactive
|
||||
client.GetAllAssets(1, 1);
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<ReleaseAsset>>(
|
||||
new Uri("repositories/1/releases/1/assets", UriKind.Relative), Args.EmptyDictionary, null);
|
||||
new Uri("repositories/1/releases/1/assets", UriKind.Relative), Args.EmptyDictionary);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -376,8 +376,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<ReleaseAsset>>(
|
||||
Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2),
|
||||
null);
|
||||
Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -399,8 +398,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
gitHubClient.Connection.Received(1).Get<List<ReleaseAsset>>(
|
||||
Arg.Is<Uri>(u => u.ToString() == expectedUrl),
|
||||
Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2),
|
||||
null);
|
||||
Arg.Is<IDictionary<string, string>>(dictionary => dictionary.Count == 2));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user