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

Where_Array_ReturnsExpectedValues_False() private method

private Where_Array_ReturnsExpectedValues_False ( ) : void
return void
        public void Where_Array_ReturnsExpectedValues_False()
        {            
            int[] source = new[] { 1, 2, 3, 4, 5 };
            Func<int, bool> falsePredicate = (value) => false;

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

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