コード例 #1
0
        public void ChallengeTwo_TestSituation3()
        {
            string input  = "-6, +3, +8, +5, -6";
            int    result = DayOne.ComputeChallengeTwoResult(input);

            Assert.AreEqual(5, result);
        }
コード例 #2
0
        public void ChallengeTwo_TestSituation4()
        {
            string input  = "+7, +7, -2, -7, -4";
            int    result = DayOne.ComputeChallengeTwoResult(input);

            Assert.AreEqual(14, result);
        }
コード例 #3
0
        public void ChallengeTwo_TestSituation1()
        {
            string input  = "+1, -1";
            int    result = DayOne.ComputeChallengeTwoResult(input);

            Assert.AreEqual(0, result);
        }