From 632dd6218bec026c1fb07cd974c957611eae2d63 Mon Sep 17 00:00:00 2001 From: "aedampir@gmail.com" Date: Wed, 16 Mar 2016 13:07:22 +0700 Subject: [PATCH] Some tests have been rewritten according to @shiftkey remarks. --- .../Clients/UserEmailsClientTests.cs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/UserEmailsClientTests.cs b/Octokit.Tests.Integration/Clients/UserEmailsClientTests.cs index 03c03f67..12ac23e4 100644 --- a/Octokit.Tests.Integration/Clients/UserEmailsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/UserEmailsClientTests.cs @@ -39,24 +39,9 @@ namespace Octokit.Tests.Integration.Clients var emails = await _emailClient.GetAll(options); - Assert.Equal(1, emails.Count); + Assert.NotEmpty(emails); } - - [IntegrationTest] - public async Task ReturnsCorrectCountOfEmailsWithStart() - { - var options = new ApiOptions - { - PageSize = 5, - PageCount = 1, - StartPage = 2 - }; - - var emails = await _emailClient.GetAll(options); - - Assert.Equal(0, emails.Count); - } - + const string testEmailAddress = "hahaha-not-a-real-email@foo.com"; [IntegrationTest(Skip = "this isn't passing in CI - i hate past me right now")]