示例#1
0
        public void Sample()
        {
            //list of 0,1,2,3,4
            _day10.List = Enumerable.Range(0, 5).ToList();
            int[] input = { 3, 4, 1, 5 };
            _day10.ApplyInput(input);

            Assert.AreEqual(12, _day10.List.Take(2).Aggregate((x, y) => x * y));
        }