예제 #1
0
        public void Problem4_Solution1_TestWithProvidedExample1()
        {
            var sut   = new Problem4_Solution1();
            var input = new int[]
            {
                1, 2, 3, 5
            };
            var actual = sut.Solve(input);

            Assert.AreEqual(4, actual);
        }
예제 #2
0
        public void Problem4_Solution1_TestWithProvidedExample3()
        {
            var sut   = new Problem4_Solution1();
            var input = new int[]
            {
                -2, -6, -10, 1, 2
            };
            var actual = sut.Solve(input);

            Assert.AreEqual(-9, actual);
        }