Exemplo n.º 1
0
        public void TestForCollisonOfHashKeys1()
        {
            MyHashtable test3 = new MyHashtable();

            test3.Add("Cat", 1);
            test3.Add("Cat", 2);
            test3.Add("Doe", 3);
            test3.Add("Doe", 4);

            Assert.Equal(163, test3.GetHash("Cat"));
            Assert.Equal(163, test3.GetHash("Doe"));
        }