예제 #1
0
        public void RemoveRange_AcquireRangeToRemoveUsingLinq_RangeRemovedWithoutExceptions()
        {
            var col    = new ConcurrentObservableCollection <string>(new[] { "a", "b", "c" });
            var select = col.Where(c => c.Equals("c"));

            col.RemoveRange(select);

            col.Should().BeEquivalentTo("a", "b");
        }