public void DeleteDoubledValueTest() { ProbingHashtable table = new ProbingHashtable(); table.Insert(1, "555"); table.Insert(2, "555"); table.Insert(1, "666"); table.Delete(1); Assert.IsNull(table.Search(1)); }
public void DeleteValueTest(int[] keys, string[] values, int keyToDelete) { ProbingHashtable table = new ProbingHashtable(); for (int i = 0; i < keys.Length; i++) { table.Insert(keys[i], values[i]); } table.Delete(keyToDelete); Assert.IsNull(table.Search(keyToDelete)); }