public void Test_Contains() { var hash = new SeparateChainHash <Byte, Char>(); hash.Add(1, 'A'); hash.Add(2, 'B'); Assert.True(hash.Contains(1)); Assert.True(hash.Contains(2)); }
public void Test_Delete() { var hash = new SeparateChainHash <Byte, Char>(); hash.Add(1, 'A'); hash.Delete(1); Assert.False(hash.Contains(1)); }