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