public void ChallengeTwo_TestSituation3() { string input = "-6, +3, +8, +5, -6"; int result = DayOne.ComputeChallengeTwoResult(input); Assert.AreEqual(5, result); }
public void ChallengeTwo_TestSituation4() { string input = "+7, +7, -2, -7, -4"; int result = DayOne.ComputeChallengeTwoResult(input); Assert.AreEqual(14, result); }
public void ChallengeTwo_TestSituation1() { string input = "+1, -1"; int result = DayOne.ComputeChallengeTwoResult(input); Assert.AreEqual(0, result); }