Ejemplo n.º 1
0
        public void CheckIfRemoveWorksCorrectly()
        {
            var hashList = new DataStructures.HashingListDictionary <int, string>(10);

            hashList.Add(1, "Ana");
            hashList.Add(11, "Andrei");
            hashList.Remove(1);
            Assert.False(hashList.ContainsKey(1));
        }
Ejemplo n.º 2
0
        public void CheckIfAddAfterRemoveWorksCorrectly()
        {
            var hashList = new DataStructures.HashingListDictionary <int, string>(10);

            hashList.Add(1, "Ana");
            hashList.Add(11, "Andrei");
            hashList.Add(13, "Andreas");
            hashList.Remove(11);
            hashList.Add(11, "Paul");
            Assert.NotEqual("Andrei", hashList[hashList.Find(11).actual]);
        }