public void TestAllTrue() { var list = new CustomList <int>(1, 5, 15, 26); var mapResult = list.All(x => x > 0); Assert.AreEqual(true, mapResult); }
public void TestAllFalse() { var list = new CustomList <int>(1, 5, 15, 34); var mapResult = list.All(x => x > 30); Assert.AreEqual(false, mapResult); }
public void All_AllFilmsContainSpace_ReturnFalse() { var result = films.All(film => film.Contains(" ")); Assert.False(result); }