mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
A simple integration test
This commit is contained in:
@@ -43,6 +43,19 @@ public class SearchClientTests
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SearchForFileNameInCode()
|
||||
{
|
||||
var request = new SearchCodeRequest("swag")
|
||||
{
|
||||
FileName = "readme.md"
|
||||
};
|
||||
|
||||
var repos = await _gitHubClient.Search.SearchCode(request);
|
||||
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SearchForWordInCode()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user