Пример #1
0
 public void FoldTest1()
 {
     Assert.AreEqual(FoldClass.Fold(new List <int>(3)
     {
         1, 2, 3
     }
                                    , 1, (accam, elem) => accam * elem), 6);
 }
Пример #2
0
        public void TestMethod1()
        {
            List <int> list = new List <int>()
            {
                1, 2, 3, 4
            };

            Assert.IsTrue(FoldClass <int> .Fold(list, 1, (x, y) => x * y) == 24);
        }