Lucene.Net.Search.TestNumericRangeQuery64.CheckTermCounts C# (CSharp) Method

CheckTermCounts() private method

private CheckTermCounts ( int precisionStep, int termCountT, int termCountC ) : void
precisionStep int
termCountT int
termCountC int
return void
        private void CheckTermCounts(int precisionStep, int termCountT, int termCountC)
        {
            if (precisionStep == int.MaxValue)
            {
                Assert.AreEqual(termCountC, termCountT, "Number of terms should be equal for unlimited precStep");
            }
            else
            {
                Assert.IsTrue(termCountT <= termCountC, "Number of terms for NRQ should be <= compared to classical TRQ");
            }
        }