mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Merge pull request #1317 from dampir/fix-incorrect-test-names
Fixed incorrect names of tests in RepositoryDeployKeysClientTests
This commit is contained in:
@@ -58,14 +58,14 @@ public class RepositoryDeployKeysClientTests : IDisposable
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip = "See https://github.com/octokit/octokit.net/issues/1003 for investigating this failing test")]
|
||||
public async Task ReturnsCorrectCountOfHooksWithoutStart()
|
||||
public async Task ReturnsCorrectCountOfDeployKeysWithoutStart()
|
||||
{
|
||||
var deployKeys = await _fixture.GetAll(_context.RepositoryOwner, _context.RepositoryName);
|
||||
Assert.Equal(0, deployKeys.Count);
|
||||
|
||||
var list = new List<NewDeployKey>();
|
||||
var hooksCount = 5;
|
||||
for (int i = 0; i < hooksCount; i++)
|
||||
var deployKeysCount = 5;
|
||||
for (int i = 0; i < deployKeysCount; i++)
|
||||
{
|
||||
var item = new NewDeployKey
|
||||
{
|
||||
@@ -82,24 +82,24 @@ public class RepositoryDeployKeysClientTests : IDisposable
|
||||
|
||||
var options = new ApiOptions
|
||||
{
|
||||
PageSize = hooksCount,
|
||||
PageSize = deployKeysCount,
|
||||
PageCount = 1
|
||||
};
|
||||
|
||||
deployKeys = await _fixture.GetAll(_context.RepositoryOwner, _context.RepositoryName, options);
|
||||
|
||||
Assert.Equal(hooksCount, deployKeys.Count);
|
||||
Assert.Equal(deployKeysCount, deployKeys.Count);
|
||||
}
|
||||
|
||||
[IntegrationTest(Skip = "See https://github.com/octokit/octokit.net/issues/1003 for investigating this failing test")]
|
||||
public async Task ReturnsCorrectCountOfHooksWithStart()
|
||||
public async Task ReturnsCorrectCountOfDeployKeysWithStart()
|
||||
{
|
||||
var deployKeys = await _fixture.GetAll(_context.RepositoryOwner, _context.RepositoryName);
|
||||
Assert.Equal(0, deployKeys.Count);
|
||||
|
||||
var list = new List<NewDeployKey>();
|
||||
var hooksCount = 5;
|
||||
for (int i = 0; i < hooksCount; i++)
|
||||
var deployKeysCount = 5;
|
||||
for (int i = 0; i < deployKeysCount; i++)
|
||||
{
|
||||
var item = new NewDeployKey
|
||||
{
|
||||
@@ -130,8 +130,8 @@ public class RepositoryDeployKeysClientTests : IDisposable
|
||||
public async Task ReturnsDistinctResultsBasedOnStartPage()
|
||||
{
|
||||
var list = new List<NewDeployKey>();
|
||||
var hooksCount = 5;
|
||||
for (int i = 0; i < hooksCount; i++)
|
||||
var deployKeysCount = 5;
|
||||
for (int i = 0; i < deployKeysCount; i++)
|
||||
{
|
||||
var item = new NewDeployKey
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user