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

Where_IReadOnlyCollection_ReturnsExpectedValues_False() private method

        public void Where_IReadOnlyCollection_ReturnsExpectedValues_False()
        {
            IReadOnlyCollection<int> source = new ReadOnlyCollection<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