public void FindAll_CollectionEmpty() { Dictionary<int, int> dictionary = new Dictionary<int, int>(); Dictionary<int, int> foundItems = dictionary.FindAll(new Predicate<KeyValuePair<int, int>>((kvp) => { return false; })); Assert.IsTrue(foundItems != null && foundItems.Count == 0); }
public void FindAll_PredicateNull() { Dictionary<int, int> dictionary = new Dictionary<int,int>(); dictionary.FindAll(null); }