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,41 +1,40 @@
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
using Xunit;
namespace Octokit.Tests.Integration
public class MiscellaneousClientTests
{
public class MiscellaneousClientTests
public class TheGetEmojisMethod
{
public class TheGetEmojisMethod
[IntegrationTest]
public async Task GetsAllTheEmojis()
{
[IntegrationTest]
public async Task GetsAllTheEmojis()
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = Helper.Credentials
};
Credentials = Helper.Credentials
};
var emojis = await github.Miscellaneous.GetEmojis();
var emojis = await github.Miscellaneous.GetEmojis();
Assert.True(emojis.Count > 1);
}
Assert.True(emojis.Count > 1);
}
}
public class TheRenderRawMarkdownMethod
public class TheRenderRawMarkdownMethod
{
[IntegrationTest]
public async Task CanRenderGitHubFlavoredMarkdown()
{
[IntegrationTest]
public async Task CanRenderGitHubFlavoredMarkdown()
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = Helper.Credentials
};
Credentials = Helper.Credentials
};
var result = await github.Miscellaneous.RenderRawMarkdown("This is a **test**");
var result = await github.Miscellaneous.RenderRawMarkdown("This is a **test**");
Assert.Equal("<p>This is a <strong>test</strong></p>", result);
}
Assert.Equal("<p>This is a <strong>test</strong></p>", result);
}
}
}