public void LeftTest() { Heap<int> heap = new MaxHeap<int>(this.testInts, true); Assert.Throws<IndexOutOfRangeException>(() => heap.GetLeft(-1)); Assert.Throws<IndexOutOfRangeException>(() => heap.GetLeft(this.count)); }
public void LeftTest() { Heap<int> heap = new MaxHeap<int>(this.testInts, true); Assert.Throws<IndexOutOfRangeException>(() => heap.GetLeft(-1)); Assert.Throws<IndexOutOfRangeException>(() => heap.GetLeft(this.count)); }