public void CalendarDay10_GetMonitoringStation() { List <string> input = new List <string> { ".#..#", ".....", "#####", "....#", "...##" }; string[,] grid = CalendarDay10.GetMeteoritGrid(input); var station = CalendarDay10.GetMonitoringStation(grid); Assert.Equal(8, station.count); Assert.Equal(3, station.x); Assert.Equal(4, station.y); }
public void CalendarDay10_GetMeteoritGrid() { List <string> input = new List <string> { ".#..#", ".....", "#####", "....#", "...##" }; string[,] grid = CalendarDay10.GetMeteoritGrid(input); string[,] expected = new string[5, 5] { { ".", "#", ".", ".", "#" }, { ".", ".", ".", ".", "." }, { "#", "#", "#", "#", "#" }, { ".", ".", ".", ".", "#" }, { ".", ".", ".", "#", "#" } }; Assert.Equal(expected, grid); }