mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 08:32:04 +00:00
Add Rocket and Eyes emoji reactions (#2114)
Co-authored-by: Brendan Forster <brendan@github.com>
This commit is contained in:
@@ -58,16 +58,21 @@ public class CommitCommentReactionsClientTests
|
||||
|
||||
Assert.NotNull(result);
|
||||
|
||||
var newReaction = new NewReaction(ReactionType.Confused);
|
||||
var reaction = await _github.Reaction.CommitComment.Create(_context.RepositoryOwner, _context.RepositoryName, result.Id, newReaction);
|
||||
var confusedReaction = new NewReaction(ReactionType.Confused);
|
||||
var firstReaction = await _github.Reaction.CommitComment.Create(_context.RepositoryOwner, _context.RepositoryName, result.Id, confusedReaction);
|
||||
|
||||
var rocketReaction = new NewReaction(ReactionType.Rocket);
|
||||
var secondReaction = await _github.Reaction.CommitComment.Create(_context.RepositoryOwner, _context.RepositoryName, result.Id, rocketReaction);
|
||||
|
||||
var reactions = await _github.Reaction.CommitComment.GetAll(_context.RepositoryOwner, _context.RepositoryName, result.Id);
|
||||
|
||||
Assert.NotEmpty(reactions);
|
||||
|
||||
Assert.Equal(reaction.Id, reactions[0].Id);
|
||||
Assert.Equal(firstReaction.Id, reactions[0].Id);
|
||||
Assert.Equal(firstReaction.Content, reactions[0].Content);
|
||||
|
||||
Assert.Equal(reaction.Content, reactions[0].Content);
|
||||
Assert.Equal(secondReaction.Id, reactions[1].Id);
|
||||
Assert.Equal(secondReaction.Content, reactions[1].Content);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
|
||||
@@ -22,7 +22,13 @@ namespace Octokit
|
||||
Heart,
|
||||
|
||||
[Parameter(Value = "hooray")]
|
||||
Hooray
|
||||
Hooray,
|
||||
|
||||
[Parameter(Value = "rocket")]
|
||||
Rocket,
|
||||
|
||||
[Parameter(Value = "eyes")]
|
||||
Eyes
|
||||
}
|
||||
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
|
||||
Reference in New Issue
Block a user