public void Day03_PartTwoTest() { var combos = new List <(int, int)> { (1, 1), (1, 3), (1, 5), (1, 7), (2, 1) }; Assert.AreEqual(3521829480, SlopeTreeCounter.DescendAndCountTreesMultipleSlopes(_items, combos)); }
public void Day03_PartOneTest() { var lines = @"..##.........##.........##.........##.........##.........##....... #...#...#..#...#...#..#...#...#..#...#...#..#...#...#..#...#...#.. .#....#..#..#....#..#..#....#..#..#....#..#..#....#..#..#....#..#. ..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.#..#.#...#.# .#...##..#..#...##..#..#...##..#..#...##..#..#...##..#..#...##..#. ..#.##.......#.##.......#.##.......#.##.......#.##.......#.##..... .#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....#.#.#.#....# .#........#.#........#.#........#.#........#.#........#.#........# #.##...#...#.##...#...#.##...#...#.##...#...#.##...#...#.##...#... #...##....##...##....##...##....##...##....##...##....##...##....# .#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.#.#..#...#.#".Split(Environment.NewLine); Assert.AreEqual(7, SlopeTreeCounter.DescendAndCountTrees(lines, 1, 3)); }
public void Day03_PartOneTest() { Assert.AreEqual(156, SlopeTreeCounter.DescendAndCountTrees(_items, 1, 3)); }