public void CountMinimumOrbitalPath(string input, int expectedPath) { var lines = input.Split('\n'); var path = Day06.CalculateMinimumOrbitalTransfers(lines, "YOU", "SAN"); path.Should().Be(expectedPath); }
public void CountDirectAndIndirectOrbits(string input, int expectedCount) { var lines = input.Split('\n'); var count = Day06.CountDirectAndIndirectOrbits(lines); count.Should().Be(expectedCount); }
public void Part2() { Day06.Part2().Should().Be(307); }
public void Part1() { Day06.Part1().Should().Be(204521); }