Ejemplo n.º 1
0
        public void All_Predicate_With_ValidData_Must_Succeed(int[] source, Predicate <int> predicate)
        {
            // Arrange
            var list     = source.ToList();
            var expected = Enumerable
                           .All(source, predicate.AsFunc());

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

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