Exemplo n.º 1
0
        public void TestInput()
        {
            var bingo  = Day4InputParser.ParseBingo("input_data/day4-test.txt");
            var winner = bingo.FindWinner();

            Assert.Equal(4512, winner.WinningNumber * bingo.SumBoard(winner.WinningBoard));
        }
Exemplo n.º 2
0
        public void PuzzelTwo()
        {
            var bingo  = Day4InputParser.ParseBingo("input_data/day4-1.txt");
            var winner = bingo.FindLastWinner();

            Assert.Equal(34726, winner.WinningNumber * bingo.SumBoard(winner.WinningBoard));
        }