This commit is contained in:
Prayank Mathur
2016-04-07 12:59:00 +05:30
parent 7f83e74125
commit 8ca8227ba0
3 changed files with 21 additions and 2 deletions
@@ -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);
}
}
}
}
@@ -150,8 +150,8 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Helper.cs" />
<Compile Include="Clients\UsersClientTests.cs" />
<Compile Include="Reactive\ObservableRepositoryDeployKeysClientTests.cs" />
<Compile Include="Reactive\ObservableRepositoryPagesClientTests.cs" />
<Compile Include="Reactive\ObservableRespositoryDeployKeysClientTests.cs" />
<Compile Include="Reactive\ObservableUserAdministrationClientTests.cs" />
<Compile Include="Reactive\ObservableUserEmailsClientTests.cs" />
<Compile Include="Reactive\ObservableTeamsClientTests.cs" />
@@ -103,4 +103,4 @@ public class ObservableRepositoryDeployKeysClientTests : IDisposable
{
Helper.DeleteRepo(_repository);
}
}
}