Beispiel #1
0
        public void count_200_trees()
        {
            var input = File.ReadAllText("Files\\Day03.txt");

            var result = new Day03Task1().Count(input, 3, 1);

            result.Should().Be(200);
        }
Beispiel #2
0
        public void count_7_trees()
        {
            var input =
                @"..##.......
#...#...#..
.#....#..#.
..#.#...#.#
.#...##..#.
..#.##.....
.#.#.#....#
.#........#
#.##...#...
#...##....#
.#..#...#.#";

            var result = new Day03Task1().Count(input, 3, 1);

            result.Should().Be(7);
        }