mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-22 22:46:08 +00:00
27 lines
877 B
C#
27 lines
877 B
C#
using System.Threading.Tasks;
|
|
using Octokit;
|
|
using Octokit.Tests.Integration;
|
|
using Xunit;
|
|
|
|
public class RepositoryPagesClientTests
|
|
{
|
|
public class TheGetMethod
|
|
{
|
|
readonly IRepositoryPagesClient _repositoryPagesClient;
|
|
const string owner = "octokit";
|
|
const string name = "octokit.net";
|
|
|
|
public TheGetMethod()
|
|
{
|
|
var github = Helper.GetAuthenticatedClient();
|
|
_repositoryPagesClient = github.Repository.Page;
|
|
}
|
|
|
|
[IntegrationTest(Skip= "These tests require repository admin rights - see https://github.com/octokit/octokit.net/issues/1263 for discussion")]
|
|
public async Task ReturnsMetadata()
|
|
{
|
|
var data = await _repositoryPagesClient.Get(owner, name);
|
|
Assert.Equal("https://api.github.com/repos/octokit/octokit.net/pages", data.Url);
|
|
}
|
|
}
|
|
} |