コード例 #1
0
        public void SolveSecondPuzzle()
        {
            var sut = SubmarineAlignment.CreateWithIncrementalConsumption(REAL_POSITIONS);

            Assert.Equal(98363777, sut.MinimumFuelConsumption);
        }
コード例 #2
0
        public void CalculateMinimumFuelConsumptionCorrectly_WhenConsumptionIsIncremental()
        {
            var sut = SubmarineAlignment.CreateWithIncrementalConsumption(SAMPLE_POSITIONS);

            Assert.Equal(168, sut.MinimumFuelConsumption);
        }