示例#1
0
        public override Day Run()
        {
            dayOfMonth = 9;
            stopwatch.Start();
            Xmas xmas = new Xmas("input/day9.txt", 25);

            answer_part1 = xmas.FirstInvalidNumber().ToString();
            answer_part2 = xmas.FindWeakness().ToString();
            return(this);
        }
示例#2
0
        public void TestFindWeakness()
        {
            Xmas xmas = new Xmas("input/day9.txt", 5);

            Assert.Equal(62, xmas.FindWeakness());
        }