mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Integration tests :polish:
This commit is contained in:
@@ -22,7 +22,7 @@ public class IssueCommentsClientTests
|
||||
{
|
||||
var comments = await _issueCommentsClient.GetAllForRepository("alfhenrik-test", "repo-with-issue-comment-reactions");
|
||||
|
||||
Assert.True(comments.Count > 0);
|
||||
Assert.NotEmpty(comments);
|
||||
var comment = comments[0];
|
||||
Assert.NotNull(comment.Reactions);
|
||||
Assert.Equal(3, comment.Reactions.TotalCount);
|
||||
@@ -39,7 +39,7 @@ public class IssueCommentsClientTests
|
||||
{
|
||||
var comments = await _issueCommentsClient.GetAllForIssue("alfhenrik-test", "repo-with-issue-comment-reactions", 1);
|
||||
|
||||
Assert.True(comments.Count > 0);
|
||||
Assert.NotEmpty(comments);
|
||||
var comment = comments[0];
|
||||
Assert.NotNull(comment.Reactions);
|
||||
Assert.Equal(3, comment.Reactions.TotalCount);
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
{
|
||||
var comments = await _issueCommentsClient.GetAllForRepository("alfhenrik-test", "repo-with-issue-comment-reactions").ToList();
|
||||
|
||||
Assert.True(comments.Count > 0);
|
||||
Assert.NotEmpty(comments);
|
||||
var comment = comments[0];
|
||||
Assert.NotNull(comment.Reactions);
|
||||
Assert.Equal(3, comment.Reactions.TotalCount);
|
||||
@@ -110,7 +110,7 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
{
|
||||
var comments = await _issueCommentsClient.GetAllForIssue("alfhenrik-test", "repo-with-issue-comment-reactions", 1).ToList();
|
||||
|
||||
Assert.True(comments.Count > 0);
|
||||
Assert.NotEmpty(comments);
|
||||
var comment = comments[0];
|
||||
Assert.NotNull(comment.Reactions);
|
||||
Assert.Equal(3, comment.Reactions.TotalCount);
|
||||
|
||||
Reference in New Issue
Block a user