public void Day07_Puzzle2_OK() { var sut = new CrabAligner(Data); int actual = sut.FindFuelToAlignMoreFuel(); Assert.Equal(95167302, actual); }
public void Test_AlignCrabsMoreFuel_OK() { var sut = new CrabAligner(TestData); int actual = sut.FindFuelToAlignMoreFuel(); Assert.Equal(168, actual); }
public void Day07_Puzzle1_OK() { var sut = new CrabAligner(Data); int actual = sut.FindFuelToAlign(); Assert.Equal(336701, actual); }
public void Test_AlignCrabs_OK() { var sut = new CrabAligner(TestData); int actual = sut.FindFuelToAlign(); Assert.Equal(37, actual); }
public void Should_Get_Lowest_Fuel_Required_To_Align() { var input = new int[] { 16, 1, 2, 0, 4, 2, 7, 1, 2, 14 }; var result = CrabAligner.GetFuelRequiredToAlign(input); Assert.Equal(37, result); }
public void Should_Get_Lowest_Fuel_Required_To_Align_With_Increasing_Cost() { var input = new int[] { 16, 1, 2, 0, 4, 2, 7, 1, 2, 14 }; var result = CrabAligner.GetFuelRequiredToAlignWithIncreasingCost(input); Assert.Equal(168, result); }