correcting a couple of tests (#1331)

This commit is contained in:
Brendan Forster
2016-05-29 15:33:23 +09:00
parent 2ed5769154
commit 921511f8d2
2 changed files with 12 additions and 3 deletions
@@ -230,7 +230,7 @@ public class RepositoriesClientTests
}
}
[PaidAccountTest]
[PaidAccountTest(Skip="Paid plans now have unlimited repositories. We shouldn't test this now.")]
public async Task ThrowsPrivateRepositoryQuotaExceededExceptionWhenOverQuota()
{
var github = Helper.GetAuthenticatedClient();
@@ -357,9 +357,18 @@ public class RepositoryCommentsClientTests
await _github.Repository.Comment.Delete(_context.RepositoryOwner, _context.RepositoryName, result.Id);
var retrievedAfter = await _github.Repository.Comment.Get(_context.RepositoryOwner, _context.RepositoryName, result.Id);
var notFound = false;
Assert.Null(retrievedAfter);
try
{
await _github.Repository.Comment.Get(_context.RepositoryOwner, _context.RepositoryName, result.Id);
}
catch (NotFoundException)
{
notFound = true;
}
Assert.True(notFound);
}
public void Dispose()