Exemplo n.º 1
0
        public async Task Day_11_1(string inputFile, int answer)
        {
            var lines   = LineReader.Open(inputFile);
            var painter = await HullPainter.Create(lines);

            await painter.RunProgram();

            Assert.Equal(answer, painter.PaintedPanels);
        }
Exemplo n.º 2
0
        public async Task Day_11_2(string inputFile, string answer)
        {
            var lines   = LineReader.Open(inputFile);
            var painter = await HullPainter.Create(lines);

            await painter.RunProgram(firstPanelWhite : true);

            var x = painter.Render();

            Assert.Equal(answer, x);
        }