mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
updated SearchCode to match correct response shape
This commit is contained in:
@@ -32,4 +32,14 @@ public class SearchClientTests
|
||||
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SearchForFunctionInCode()
|
||||
{
|
||||
var request = new SearchCodeRequest("addClass");
|
||||
request.Repo = "jquery/jquery";
|
||||
var repos = await _gitHubClient.Search.SearchCode(request);
|
||||
|
||||
Assert.NotEmpty(repos.Items);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user