Beispiel #1
0
        public void AnyShouldReturnTrueIfThereIsSomethingInTheArray()
        {
            //Arange
            var expectedResult = true;
            //Act
            var actualResult = array.Any();

            //Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
 /// <summary>
 /// Checks if there is anything in the <typeparamref name="CustomList"/> that meets the given conditions.
 /// </summary>
 /// <param name="predicate">Defines the conditions of the element to search for.</param>
 /// <returns><paramref name="true"/> if item was found,otherwise <paramref name="false"/></returns>
 public bool Any(Func <T, bool> predicate) => array.Any(predicate);