Ejemplo n.º 1
0
    public void Y2021_Day07_AlignSubmarines_Returns_Correct_Value(bool withVariableBurnRate, long expected)
    {
        // Arrange
        int[] submarines = { 16, 1, 2, 0, 4, 2, 7, 1, 2, 14 };

        // Act
        long actual = Day07.AlignSubmarines(submarines, withVariableBurnRate);

        // Assert
        actual.ShouldBe(expected);
    }