public void UT_TestCacheMapping()
 {
     var cache = new TextAttributeCache<KeyEvent>();
     Assert.AreEqual("del", cache.GetEnumText(KeyEvent.Delete));
     Assert.AreEqual(KeyEvent.Delete, cache.GetEnumValue("del"));
     Assert.AreEqual("incrby", cache.GetEnumText(KeyEvent.Increment));
     Assert.AreEqual(KeyEvent.Increment, cache.GetEnumValue("incrby"));
 }
예제 #2
0
        public void UT_TestCacheMapping()
        {
            var cache = new TextAttributeCache <KeyEvent>();

            Assert.AreEqual("del", cache.GetEnumText(KeyEvent.Delete));
            Assert.AreEqual(KeyEvent.Delete, cache.GetEnumValue("del"));
            Assert.AreEqual("incrby", cache.GetEnumText(KeyEvent.Increment));
            Assert.AreEqual(KeyEvent.Increment, cache.GetEnumValue("incrby"));
        }