System.Linq.Tests.WhereTests.Where_ICollection_ReturnsExpectedValues_False C# (CSharp) Method

Where_ICollection_ReturnsExpectedValues_False() private method

private Where_ICollection_ReturnsExpectedValues_False ( ) : void
return void
        public void Where_ICollection_ReturnsExpectedValues_False()
        {
            ICollection<int> source = new LinkedList<int>(new List<int> { 1, 2, 3, 4, 5 });
            Func<int, bool> falsePredicate = (value) => false;

            IEnumerable<int> result = source.Where(falsePredicate);

            Assert.Equal(0, result.Count());
        }
WhereTests