Example #1
0
        public void TestCalculateFuelByFuel(double mass, int fuel)
        {
            var calc        = new FuelCalculation();
            var fuelForMass = calc.CalculateFuelByMass(mass);
            var fuelForFuel = calc.CalcFuelForFuel(fuelForMass, 0);

            Assert.IsTrue(fuelForMass + fuelForFuel == fuel);
        }
Example #2
0
        public void TestCalculateFuelByMass(double mass, int fuel)
        {
            var calc = new FuelCalculation();

            Assert.IsTrue(calc.CalculateFuelByMass(mass) == fuel);
        }