Beispiel #1
0
        public void FinalAnswer()
        {
            long fuelRequired = Part2.CalculateFuelRequiredForMultiples(finalMassList);
            long expectedFuel = 5099916;

            Assert.Equal(fuelRequired, expectedFuel);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var solve1 = new Part1().Solve();

            Console.WriteLine(solve1);

            var solve2 = new Part2().Solve();

            Console.WriteLine(solve2);
        }
Beispiel #3
0
        public void BaseCases(long mass, long expectedFuel)
        {
            long fuelRequired = Part2.CalculateFuelRequired(mass);

            Assert.Equal(expectedFuel, fuelRequired);
        }