mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 10:12:38 +00:00
stripped out some unnecessary namespaces for tests
This commit is contained in:
@@ -1,31 +1,30 @@
|
||||
using System.Net.Http.Headers;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit;
|
||||
using Octokit.Tests.Integration;
|
||||
using Xunit;
|
||||
|
||||
namespace Octokit.Tests.Integration
|
||||
public class CommitStatusClientTests
|
||||
{
|
||||
public class CommitStatusClientTests
|
||||
public class TheGetAllMethod
|
||||
{
|
||||
public class TheGetAllMethod
|
||||
[IntegrationTest]
|
||||
public async Task CanRetrieveStatuses()
|
||||
{
|
||||
[IntegrationTest]
|
||||
public async Task CanRetrieveStatuses()
|
||||
{
|
||||
// Figured it was easier to grab the public status of a public repository for now than
|
||||
// to go through the rigamarole of creating it all. But ideally, that's exactly what we'd do.
|
||||
// Figured it was easier to grab the public status of a public repository for now than
|
||||
// to go through the rigamarole of creating it all. But ideally, that's exactly what we'd do.
|
||||
|
||||
var githubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
var statuses = await githubClient.Repository.CommitStatus.GetAll(
|
||||
"rails",
|
||||
"rails",
|
||||
"94b857899506612956bb542e28e292308accb908");
|
||||
Assert.Equal(2, statuses.Count);
|
||||
Assert.Equal(CommitState.Failure, statuses[0].State);
|
||||
Assert.Equal(CommitState.Pending, statuses[1].State);
|
||||
}
|
||||
var githubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
var statuses = await githubClient.Repository.CommitStatus.GetAll(
|
||||
"rails",
|
||||
"rails",
|
||||
"94b857899506612956bb542e28e292308accb908");
|
||||
Assert.Equal(2, statuses.Count);
|
||||
Assert.Equal(CommitState.Failure, statuses[0].State);
|
||||
Assert.Equal(CommitState.Pending, statuses[1].State);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user