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
@@ -66,7 +66,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository("fake", "repo");
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repos/fake/repo/comments"),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
Args.EmptyDictionary);
}
[Fact]
@@ -77,7 +77,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository(1);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repositories/1/comments"),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
Args.EmptyDictionary);
}
[Fact]
@@ -95,7 +95,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository("fake", "repo", options);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repos/fake/repo/comments"),
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2));
}
[Fact]
@@ -113,7 +113,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository(1, options);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repositories/1/comments"),
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2));
}
[Fact]
@@ -147,7 +147,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit("fake", "repo", "sha");
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repos/fake/repo/commits/sha/comments", UriKind.Relative)),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
Args.EmptyDictionary);
}
[Fact]
@@ -158,7 +158,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit(1, "sha");
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repositories/1/commits/sha/comments", UriKind.Relative)),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
Args.EmptyDictionary);
}
[Fact]
@@ -176,7 +176,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit("fake", "repo", "sha", options);
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repos/fake/repo/commits/sha/comments", UriKind.Relative)),
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]
@@ -194,7 +194,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit(1, "sha", options);
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repositories/1/commits/sha/comments", UriKind.Relative)),
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]