public void RemoveAll_SingleList() { IList<int> list = new List<int> { 1, 2, 3 }; Assert.IsTrue (list.RemoveAll (i => i == 2)); Assert.AreEqual (2, list.Count); Assert.IsFalse (list.Contains (2), "List still contains removed item"); }