public void IndexMinHeap_CheckHeapCondition(IntHeapItem[] items) { //Create the heap and add the items. var heap = new IndexMinHeap <IntHeapItem>(items); for (int i = 0; i < items.Length; i++) { heap.Add(i); } var indexes = heap.Select(i => items[i]).ToArray(); for (int i = 0; i < items.Length; i++) { CheckHeapCondition(indexes, i); } }