コード例 #1
0
        public void TestRemoveObject()
        {
            ICacheController cc      = GetController();
            string           testKey = "testKey";
            string           testVal = "testVal";

            Assert.AreEqual(cc[testKey], null);

            cc[testKey] = testVal;
            Assert.AreEqual(cc[testKey], testVal);

            cc.Remove(testKey);
            Assert.AreEqual(cc[testKey], null);
        }