public void GetTopNormal(int[] elements, int expectedTop) { IntMinHeap heap = new IntMinHeap(); foreach (int element in elements) { heap.Add(element); } Assert.AreEqual(expectedTop, heap.GetTop()); }
public void GetTopNoneInt() { IntMinHeap intMinHeap = new IntMinHeap(); Assert.AreEqual(default(int), intMinHeap.GetTop()); }