feat: Removing accept header previews (#2515)

This commit is contained in:
Chris Simpson
2022-08-01 15:37:23 +01:00
committed by GitHub
parent 840935a8d7
commit 2f7bd00dd6
138 changed files with 954 additions and 1659 deletions
@@ -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]