示例#1
0
        public void Any_Predicate_With_ValidData_Must_Succeed(int[] source, Predicate <int> predicate)
        {
            // Arrange
            var list     = source.ToList();
            var expected = Enumerable
                           .Any(source, predicate.AsFunc());

            // Act
            var result = ListBindings
                         .Any(list, predicate);

            // Assert
            _ = result.Must()
                .BeEqualTo(expected);
        }