Пример #1
0
        public void FinalAnswer()
        {
            long fuelRequired = Part2.CalculateFuelRequiredForMultiples(finalMassList);
            long expectedFuel = 5099916;

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

            Console.WriteLine(solve1);

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

            Console.WriteLine(solve2);
        }
Пример #3
0
        public void BaseCases(long mass, long expectedFuel)
        {
            long fuelRequired = Part2.CalculateFuelRequired(mass);

            Assert.Equal(expectedFuel, fuelRequired);
        }