Exemplo n.º 1
0
        public void Grid_WithRealInput_ToString()
        {
            var grid = new RegionsGroupedByCoordinate(Input.Day06Parse(Input.Day06));

            var asString = grid.ToString();

            //File.AppendAllText(@"C:\Projects\adventofcode\2018\day06output.txt", asString);
        }
Exemplo n.º 2
0
        public void Puzzle1Example_GridPopulatesCorrectly()
        {
            var expectedOutside = new List <int> {
                -1, 0, 1, 2, 5
            };
            var grid = new RegionsGroupedByCoordinate(Input.Day06Parse(PuzzleExample));

            Output.WriteLine(grid.ToString());
            grid.Outside.Should().OnlyContain(x => expectedOutside.Contains(x));
        }