public void DeleteMinTest() { var ts1 = "c a b".Split().Aggregate(BootstrappedHeap <string> .Empty, (current, word) => BootstrappedHeap <string> .Insert(word, current)); var ts2 = BootstrappedHeap <string> .DeleteMin(ts1); Assert.AreEqual("b", BootstrappedHeap <string> .FindMin(ts2)); }
public void DeleteEmptyMinTest() { AssertThrows <ArgumentNullException>(() => BootstrappedHeap <string> .DeleteMin(BootstrappedHeap <string> .Empty)); }