mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
stripped out some unnecessary namespaces for tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user