public void TestTermQueryWithFixedPostingList() { using (var q = new TermQuery( PostingListArray.Parse("[3,1,1], [4,1,1], [5,1,1], [50,10,81], [143787543,79815,2124]"))) { var m = 0; while (q.NextMatch() != null) { ++m; } Assert.Equal(5, m); Assert.Null(q.NextMatch()); } }