mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
test for all issues being returned
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Octokit;
|
||||
using Octokit.Tests.Integration;
|
||||
using Xunit;
|
||||
@@ -66,4 +67,19 @@ public class SearchClientTests
|
||||
|
||||
Assert.NotEmpty(issues.Items);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SearchForAllIssues()
|
||||
{
|
||||
var request = new SearchIssuesRequest("phone");
|
||||
request.Repo = "caliburn-micro/caliburn.micro";
|
||||
|
||||
var issues = await _gitHubClient.Search.SearchIssues(request);
|
||||
|
||||
var closedIssues = issues.Items.Where(x => x.State == ItemState.Closed);
|
||||
var openedIssues = issues.Items.Where(x => x.State == ItemState.Open);
|
||||
|
||||
Assert.NotEmpty(closedIssues);
|
||||
Assert.NotEmpty(openedIssues);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user