public void RemoveTest()
 {
     ListMapping<string, int> TestObject = new ListMapping<string, int>();
     TestObject.Add("A", 0);
     TestObject.Add("A", 1);
     TestObject.Remove("A", 0);
     Assert.Equal(1, TestObject["A"].Count);
     Assert.Equal(1, TestObject["A"].FirstOrDefault());
 }
Пример #2
0
        public void RemoveTest()
        {
            ListMapping <string, int> TestObject = new ListMapping <string, int>();

            TestObject.Add("A", 0);
            TestObject.Add("A", 1);
            TestObject.Remove("A", 0);
            Assert.Equal(1, TestObject["A"].Count);
            Assert.Equal(1, TestObject["A"][0]);
        }
        public void RemoveTest()
        {
            var TestObject = new ListMapping <string, int>();

            TestObject.Add("A", 0);
            TestObject.Add("A", 1);
            TestObject.Remove("A", 0);
            Assert.Equal(1, TestObject["A"].Count());
            Assert.Equal(1, TestObject["A"].FirstOrDefault());
        }