Add Rocket and Eyes emoji reactions (#2114)

Co-authored-by: Brendan Forster <brendan@github.com>
This commit is contained in:
Ridwan Hoq
2020-02-25 20:29:43 -06:00
committed by GitHub
parent 01b6086094
commit 8cf6dd2ff2
2 changed files with 16 additions and 5 deletions
@@ -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]
+7 -1
View File
@@ -22,7 +22,13 @@ namespace Octokit
Heart,
[Parameter(Value = "hooray")]
Hooray
Hooray,
[Parameter(Value = "rocket")]
Rocket,
[Parameter(Value = "eyes")]
Eyes
}
[DebuggerDisplay("{DebuggerDisplay,nq}")]