예제 #1
0
 public void TestClear()
 {
     FastMap<String, String> map = new FastMap<String, String>();
     map.Add("foo", "bar");
     map.Clear();
     Assert.AreEqual(0, map.Count);
     Assert.IsTrue(map.IsEmpty);
     Assert.IsNull(map["foo"]);
 }
예제 #2
0
        public void TestClear()
        {
            FastMap <String, String> map = new FastMap <String, String>();

            map.Add("foo", "bar");
            map.Clear();
            Assert.AreEqual(0, map.Count);
            Assert.IsTrue(map.IsEmpty);
            Assert.IsNull(map["foo"]);
        }