Пример #1
0
        public override Day Run()
        {
            dayOfMonth = 19;
            stopwatch.Start();
            MonsterMessage message = new MonsterMessage();

            answer_part1 = message.NumberOfMatchesFromFile("input/day19.txt", false).ToString();
            message      = new MonsterMessage();
            answer_part2 = message.NumberOfMatchesFromFile("input/day19.txt", true).ToString();
            return(this);
        }
Пример #2
0
        public void TestNumberOfMatchesFromFile()
        {
            MonsterMessage message = new MonsterMessage();

            Assert.Equal(2, message.NumberOfMatchesFromFile("input/day19.txt", false));
        }
Пример #3
0
        public void TestNumberOfMatchesFromPatchedFile()
        {
            MonsterMessage message = new MonsterMessage();

            Assert.Equal(12, message.NumberOfMatchesFromFile("input/day19b.txt", true));
        }