mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Add support for code searches without a search term (#1338)
This commit is contained in:
committed by
Brendan Forster
parent
85a87dade3
commit
f05f6dcab9
@@ -57,6 +57,20 @@ public class SearchClientTests
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task SearchForFileNameInCodeWithoutTerm()
|
||||
{
|
||||
var request = new SearchCodeRequest()
|
||||
{
|
||||
FileName = "readme.md",
|
||||
Repos = new RepositoryCollection { "octokit/octokit.net" }
|
||||
};
|
||||
|
||||
var repos = await _gitHubClient.Search.SearchCode(request);
|
||||
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task SearchForWordInCode()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user