예제 #1
0
        public void CalculateSpacecraftFuelRequirementsInfIncludingFuelMass()
        {
            var modulesMasses = File.ReadAllText("Input.txt")
                                .Split(Environment.NewLine)
                                .Select(x => Convert.ToInt32(x));

            Assert.Equal(4967616, FuelCalculator.CalculateSpacecraftFuelRequirementIncludingFuelMass(modulesMasses));
        }