mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 10:55:53 +00:00
added secondary test
This commit is contained in:
@@ -21,12 +21,26 @@ namespace Octokit.Tests.Integration.Reactive
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip = "These tests require repository admin rights - see https://github.com/octokit/octokit.net/issues/1263 for discussion")]
|
||||
public async Task ReturnsRepositoryPages()
|
||||
public async Task ReturnsAllRepositoryPagesBuilds()
|
||||
{
|
||||
var pages = await _repositoryPagesClient.GetAll(owner, name).ToList();
|
||||
|
||||
Assert.NotEmpty(pages);
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip = "These tests require repository admin rights - see https://github.com/octokit/octokit.net/issues/1263 for discussion")]
|
||||
public async Task ReturnsPageOfRepositoryBuilds()
|
||||
{
|
||||
var options = new ApiOptions
|
||||
{
|
||||
PageSize= 5,
|
||||
PageCount = 1
|
||||
};
|
||||
|
||||
var pages = await _repositoryPagesClient.GetAll(owner, name, options).ToList();
|
||||
|
||||
Assert.Equal(5, pages.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user