Exemplo n.º 1
0
        public void TestThatCanRemoveValueItemFromInMemoryCollection()
        {
            int          num = ClientSection.Count;
            const string key = "key2";

            //get a value
            Assert.IsTrue(ClientSection.ContainsKey(key));
            string val = ClientSection[key];

            Assert.AreEqual("valueabc", val);

            ClientSection.Remove(key);
            Assert.IsFalse(ClientSection.ContainsKey(key));

            Assert.AreEqual(num - 1, ClientSection.Count);
        }