Beispiel #1
0
        public virtual void testRemoveKeys()
        {
            JDFAttributeMap m1 = new JDFAttributeMap("a1", "v1");

            m1.put("a2", "v2");
            JDFAttributeMap m2 = new JDFAttributeMap("a1", "v1");

            SupportClass.HashSetSupport <string> keys = new SupportClass.HashSetSupport <string>();
            keys.Add("a2");
            m1.removeKeys(keys);
            Assert.AreEqual(m1, m2);
            m1.put("a2", null);
            Assert.AreNotEqual(m1, m2);
            m1.removeKeys(keys);
            Assert.AreEqual(m1, m2);
        }