public void MaxBinaryHeapGetMaximumValueTest() { MaxBinaryHeap <int, int> heap = new MaxBinaryHeap <int, int>(); heap.Insert(2, 22); heap.Insert(3, 33); heap.Insert(1, 11); Assert.AreEqual(3, heap.Size); Assert.AreEqual(33, heap.GetMaximumValue()); Assert.AreEqual(3, heap.Size); }
public void MaxBinaryHeapGetMaximumValueGuardTest() { MaxBinaryHeap <int, int> heap = new MaxBinaryHeap <int, int>(); int result = heap.GetMaximumValue(); }