public void SolveSecondPuzzle() { var sut = SubmarineAlignment.CreateWithIncrementalConsumption(REAL_POSITIONS); Assert.Equal(98363777, sut.MinimumFuelConsumption); }
public void CalculateMinimumFuelConsumptionCorrectly_WhenConsumptionIsIncremental() { var sut = SubmarineAlignment.CreateWithIncrementalConsumption(SAMPLE_POSITIONS); Assert.Equal(168, sut.MinimumFuelConsumption); }