コード例 #1
0
        public void RunApp()
        {
            var resource = _resourceFactory.GenerateResource();

            Console.WriteLine(_fuelCalculator.CalculateFuelRequirement(resource.ModuleWeights));
            Console.ReadLine();
        }
コード例 #2
0
 public void CalculateModuleFuelRequirement(int givenMass, int expectedFuel)
 {
     Assert.Equal(expectedFuel, FuelCalculator.CalculateFuelRequirement(givenMass));
 }