Example #1
0
        public void ClearAllTest()
        {
            string[] expectedKeys = { "test1", "test2", "test3" };


            hashMap.Add("test1", "test3");
            hashMap.Add("test2", "test4");
            hashMap.Add("test3", "test5");

            hashMap.ClearAll();



            for (int i = 0; i < expectedKeys.Length; i++)
            {
                Assert.AreEqual(null, hashMap.GetValue(expectedKeys[i]));
            }
        }