mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 19:11:30 +00:00
Change tests to use non-obsolete methods
This commit is contained in:
@@ -552,39 +552,6 @@ public class RepositoriesClientTests
|
||||
}
|
||||
}
|
||||
|
||||
public class TheGetReadmeMethod
|
||||
{
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsReadmeForSeeGit()
|
||||
{
|
||||
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
|
||||
var readme = await github.Repository.GetReadme("octokit", "octokit.net");
|
||||
Assert.Equal("README.md", readme.Name);
|
||||
string readMeHtml = await readme.GetHtmlContent();
|
||||
Assert.True(readMeHtml.StartsWith("<div class="));
|
||||
Assert.Contains(@"data-path=""README.md"" id=""file""", readMeHtml);
|
||||
Assert.Contains("Octokit - GitHub API Client Library for .NET", readMeHtml);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsReadmeHtmlForSeeGit()
|
||||
{
|
||||
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
|
||||
var readmeHtml = await github.Repository.GetReadmeHtml("octokit", "octokit.net");
|
||||
Assert.True(readmeHtml.StartsWith("<div class="));
|
||||
Assert.Contains(@"data-path=""README.md"" id=""readme""", readmeHtml);
|
||||
Assert.Contains("Octokit - GitHub API Client Library for .NET", readmeHtml);
|
||||
}
|
||||
}
|
||||
|
||||
public class TheGetAllContributorsMethod
|
||||
{
|
||||
[IntegrationTest]
|
||||
|
||||
Reference in New Issue
Block a user