Exemple #1
0
        public void TestAllTrue()
        {
            var list = new CustomList <int>(1, 5, 15, 26);

            var mapResult = list.All(x => x > 0);

            Assert.AreEqual(true, mapResult);
        }
Exemple #2
0
        public void TestAllFalse()
        {
            var list = new CustomList <int>(1, 5, 15, 34);

            var mapResult = list.All(x => x > 30);

            Assert.AreEqual(false, mapResult);
        }
Exemple #3
0
        public void All_AllFilmsContainSpace_ReturnFalse()
        {
            var result = films.All(film => film.Contains(" "));

            Assert.False(result);
        }