Example #1
0
        public void LST_POP_PUSH()
        {
            ProtobufList <UserBase1> list = "USERS";//new ProtobufList<UserBase>();

            list.Push(new UserBase1 {
                Name = "john", Age = 10, City = "wx", Country = "cn"
            });
            Assert.AreEqual("john", list.Pop().Name);
        }
Example #2
0
        public void LST_POP_PUSH()
        {
            ProtobufList <UserBase> lst = "USERS";

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