Exemplo n.º 1
0
        public void LST_LENGTH()
        {
            ProtobufList <UserBase1> lst = "USERS";

            lst.Clear();
            lst.Add(new UserBase1 {
                Name = "john", Age = 19, City = "wx", Country = "zn"
            });
            lst.Add(new UserBase1 {
                Name = "bbq", Age = 19, City = "wx", Country = "zn"
            });
            Assert.AreEqual(lst.Count(), 2);
        }
Exemplo n.º 2
0
        public void LST_Length()
        {
            ProtobufList <UserBase> lst = "USERS";

            lst.Clear();
            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(lst.Count(), 2);
        }