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