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")); }
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")); }