mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user