// [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); }
public void Part1() { Day10.Part1().Should().Be(263); }
public void NumberOfAsteroidsFromBestLocation(string asteroidMap, int expectedAsteroidCount) { var lines = asteroidMap.Split('\n'); Day10.NumberOfAsteroidsFromBestLocation(lines).Should().Be(expectedAsteroidCount); }