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

Where_List_ReturnsExpectedValues_False() private method

private Where_List_ReturnsExpectedValues_False ( ) : void
return void
        public void Where_List_ReturnsExpectedValues_False()
        {
            List<int> source = 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