Пример #1
0
        public void TestRemoveAllFromList()
        {
            AVObject obj = new AVObject("Corgi");

            obj["existingList"] = new List <string>()
            {
                "gogo", "Queen of Pain"
            };

            obj.RemoveAllFromList("existingList", new List <string>()
            {
                "gogo", "missingItem"
            });
            Assert.AreEqual(1, obj.Get <List <object> >("existingList").Count);
        }
Пример #2
0
        public void TestRemoveAllFromList()
        {
            AVObject obj = new AVObject("Corgi");
            obj["existingList"] = new List<string>() { "gogo", "Queen of Pain" };

            obj.RemoveAllFromList("existingList", new List<string>() { "gogo", "missingItem" });
            Assert.AreEqual(1, obj.Get<List<object>>("existingList").Count);
        }