示例#1
0
        public void ContainsTest()
        {
            var tableUserCache = new TableUserCache <ConfigManager, ConfigModel>();
            var result         = tableUserCache.Contains("键3");

            if (!result)
            {
                Assert.Fail();
            }
        }
示例#2
0
        public void RemoveUserInfoTest()
        {
            var tableUserCache = new TableUserCache <ConfigManager, ConfigModel>();
            var result         = tableUserCache.RemoveUserInfo("键3");

            if (!result)
            {
                Assert.Fail();
            }
        }
        public void StaticSetValueTest()
        {

            var tableUserCache = new TableUserCache<ConfigManager, ConfigModel>();
            var result = tableUserCache.SetValue("234568", "13088855548");
            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值6", "键3");
            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值5234", "键5");
            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值623", "键2");

            if (!result) Assert.Fail();
        }
示例#4
0
        public void StaticSetValueTest()
        {
            var tableUserCache = new TableUserCache <ConfigManager, ConfigModel>();
            var result         = tableUserCache.SetValue("234568", "13088855548");

            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值6", "键3");
            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值5234", "键5");
            //TableUserCache<ConfigManager, ConfigModel>.StaticSetValue("值623", "键2");

            if (!result)
            {
                Assert.Fail();
            }
        }
 public void ContainsTest()
 {
     var tableUserCache = new TableUserCache<ConfigManager, ConfigModel>();
     var result = tableUserCache.Contains("键3");
     if (!result) Assert.Fail();
 }
 public void RemoveUserInfoTest()
 {
     var tableUserCache = new TableUserCache<ConfigManager, ConfigModel>();
     var result = tableUserCache.RemoveUserInfo("键3");
     if (!result) Assert.Fail();
 }