Ejemplo n.º 1
0
//        [TestCase(36, 14, 3)]
//        [TestCase(35, 13, 3)]
        public void Part2Example(int n, int x, int y)
        {
            const string example = @"
.#....#####...#..
##...##.#####..##
##...#...#.#####.
..#.....#...###..
..#.#.....#....##";
            var          nthVaporisedAsteroid = Day10.GetNthVaporisedAsteroid(example.Split('\n'), n);

            nthVaporisedAsteroid.X.Should().Be(x);
            nthVaporisedAsteroid.Y.Should().Be(y);
        }
Ejemplo n.º 2
0
 public void Part1()
 {
     Day10.Part1().Should().Be(263);
 }
Ejemplo n.º 3
0
        public void NumberOfAsteroidsFromBestLocation(string asteroidMap, int expectedAsteroidCount)
        {
            var lines = asteroidMap.Split('\n');

            Day10.NumberOfAsteroidsFromBestLocation(lines).Should().Be(expectedAsteroidCount);
        }