From b17bbfaf2c339147a30ecd1058a26ab5b0fb9edf Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Wed, 15 Jun 2016 17:07:41 +1000 Subject: [PATCH] Integration tests :polish: --- Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs | 4 ++-- .../Reactive/ObservableIssueCommentsClientTests.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs index 89858357..ceb375a0 100644 --- a/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/IssueCommentsClientTests.cs @@ -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); diff --git a/Octokit.Tests.Integration/Reactive/ObservableIssueCommentsClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableIssueCommentsClientTests.cs index 3b424916..11c8b845 100644 --- a/Octokit.Tests.Integration/Reactive/ObservableIssueCommentsClientTests.cs +++ b/Octokit.Tests.Integration/Reactive/ObservableIssueCommentsClientTests.cs @@ -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);