コード例 #1
0
        public void AccumulateFuelIfNotZero()
        {
            var calculator = new FuelCalculator();

            var fuelForFuel = calculator.CalcFuelforModuleAndFuel(654);

            fuelForFuel.ShouldBe(966);
        }
コード例 #2
0
        public void ReturnFuelNeededForFuel()
        {
            var calculator = new FuelCalculator();

            var fuelForFuel = calculator.CalcFuelforModuleAndFuel(2);

            fuelForFuel.ShouldBe(2);
        }