예제 #1
0
        public void FinalAnswer()
        {
            long fuelRequired = Part1.CalculateFuelRequiredForMultiples(finalMassList);
            long expectedFuel = 3401852;

            Assert.Equal(fuelRequired, expectedFuel);
        }
예제 #2
0
        public void Answer1()
        {
            List <long> masses = new List <long>()
            {
                12, 14, 1969, 100756
            };
            long fuelRequired = Part1.CalculateFuelRequiredForMultiples(masses);
            long expectedFuel = 34241;

            Assert.Equal(fuelRequired, expectedFuel);
        }