stripped out some unnecessary namespaces for tests

This commit is contained in:
Brendan Forster
2013-11-28 16:04:16 -08:00
parent df15f35db2
commit 446ea0e89a
6 changed files with 553 additions and 562 deletions
@@ -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);
}
}
}