public void WatchListTriggersRemoveAll() { var wl = new WatchList<int>("carp"); bool triggered = false; wl.AddRangeInternal(new int[] { 1, 2, 3 }); wl.OnCollectionChanged += new CollectionChanged<int>(delegate(string name, IEnumerable<int> collection) { triggered = true; }); wl.RemoveAll(new Predicate<int>(p => p == 1)); Assert.IsTrue(triggered); }