Add support for code searches without a search term (#1338)

This commit is contained in:
Daniel Plaisted
2016-06-03 00:39:55 -07:00
committed by Brendan Forster
parent 85a87dade3
commit f05f6dcab9
3 changed files with 30 additions and 1 deletions
@@ -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()
{