Lucene.Net.Search.CheckHits.CheckDocIds C# (CSharp) Method

CheckDocIds() public static method

Tests that a Hits has an expected order of documents
public static CheckDocIds ( string mes, int results, Lucene.Net.Search.ScoreDoc hits ) : void
mes string
results int
hits Lucene.Net.Search.ScoreDoc
return void
        public static void CheckDocIds(string mes, int[] results, ScoreDoc[] hits)
        {
            Assert.AreEqual(hits.Length, results.Length, mes + " nr of hits");
            for (int i = 0; i < results.Length; i++)
            {
                Assert.AreEqual(results[i], hits[i].Doc, mes + " doc nrs for hit " + i);
            }
        }