mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
add attribute for tracking preview usage in the codebase (#2128)
This commit is contained in:
@@ -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");
|
||||
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[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");
|
||||
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user