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);
}
}