Files
octokit.net/Octokit.Tests.Integration/Clients/RepositoryPagesClientTests.cs
2016-04-11 10:08:07 +05:30

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);
}
}
}