Exemple #1
0
    public void Should_calculate_fuel_required()
    {
        var inputPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Day7Tests/Input/example.txt");
        var input     = File.ReadAllText(inputPath);

        var result = Day7.CalculateFuelRequired(input);

        Assert.That(result, Is.EqualTo(37));
    }