public void Part2Test(int dx, int dy, int expectedTrees) { // Given var map = TobogganMap.Parse(Input.Get(3)); // When var path = map.GetPath(dx, dy); var trees = path.Count(x => x == TobogganMapTile.Tree); // Then Assert.Equal(expectedTrees, trees); }
public void Part1Test() { // Given var map = TobogganMap.Parse(Input.Get(3)); // When var path = map.GetPath(3, 1); var trees = path.Count(x => x == TobogganMapTile.Tree); // Then Assert.Equal(7, trees); }