public void HandlesCommentsAttributeCorrectly() { var request = new SearchIssuesRequest("test"); Assert.DoesNotContain(request.MergedQualifiers(), x => x.Contains("comments:")); request.Comments = Range.GreaterThan(5); Assert.Contains("comments:>5", request.MergedQualifiers()); }
private SearchRepositoriesRequest GetRepositoriesRequest(int page, int minStars) { return(new SearchRepositoriesRequest() { Stars = Config.SearchMaxStars.HasValue ? new Range(minStars, Config.SearchMaxStars.Value) : Range.GreaterThanOrEquals(minStars), Page = page, SortField = RepoSearchSort.Stars, Order = SortDirection.Ascending, PerPage = 100, }); }