コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: johnwonder/RedisLearn
        public void LST_REMOVE_ADD()
        {
            ProtobufList <UserBase1> lst = "USERS";

            lst.Add(new UserBase1 {
                Name = "john", Age = 10, City = "wx", Country = "zc"
            });
            lst.Add(new UserBase1 {
                Name = "bbq", Age = 19, City = "gz", Country = "us"
            });
            Assert.AreEqual("bbq", lst.Remove().Name);
        }
コード例 #2
0
        public void LST_REMOVE_ADD()
        {
            ProtobufList <UserBase> lst = "USERS";

            lst.Add(new UserBase {
                Name = "henry", Age = 18, City = "gz", Counrty = "cn"
            });
            lst.Add(new UserBase {
                Name = "bbq", Age = 18, City = "gz", Counrty = "cn"
            });
            Assert.AreEqual("bbq", lst.Remove().Name);
        }