mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 18:35:35 +00:00
Fixes
This commit is contained in:
@@ -96,5 +96,24 @@ public class RepositoryPagesClientTests
|
||||
Assert.NotEqual(firstPage[3].Url, secondPage[3].Url);
|
||||
Assert.NotEqual(firstPage[4].Url, secondPage[4].Url);
|
||||
}
|
||||
|
||||
public class TheGetLatestMethod
|
||||
{
|
||||
readonly IRepositoryPagesClient _repositoryPagesClient;
|
||||
const string owner = "octokit";
|
||||
const string name = "octokit.net";
|
||||
|
||||
public TheGetLatestMethod()
|
||||
{
|
||||
_repositoryPagesClient = Helper.GetAuthenticatedClient().Repository.Page;
|
||||
}
|
||||
|
||||
public async Task ReturnsMetadata()
|
||||
{
|
||||
var data = _repositoryPagesClient.GetLatest(owner, name);
|
||||
|
||||
Assert.NotNull(data.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user