public void TestDay1CaptchaSolve1Func() { Assert.AreEqual(3, Day1Captcha.Solve1Func("1122")); Assert.AreEqual(4, Day1Captcha.Solve1Func("1111")); Assert.AreEqual(0, Day1Captcha.Solve1Func("1234")); Assert.AreEqual(9, Day1Captcha.Solve1Func("91212129")); Assert.AreEqual(1097, Day1Captcha.Solve1Func(Day1Input)); }
public void TestDay1CaptchaSolve2() { Assert.AreEqual(6, Day1Captcha.Solve2("1212")); Assert.AreEqual(0, Day1Captcha.Solve2("1221")); Assert.AreEqual(4, Day1Captcha.Solve2("123425")); Assert.AreEqual(12, Day1Captcha.Solve2("123123")); Assert.AreEqual(4, Day1Captcha.Solve2("12131415")); Assert.AreEqual(1188, Day1Captcha.Solve2(Day1Input)); }