public void ContainsKeyTest() { var heap = new MaxHeap <int, int>(); heap.Add(42, -1); Assert.IsTrue(heap.ContainsKey(42)); Assert.IsFalse(heap.ContainsKey(-1)); }