Exemplo n.º 1
0
    public void Should_calculate_power_consumption()
    {
        var inputPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Day3Tests/Input/example.txt");
        var input     = File.ReadAllLines(inputPath);

        var result = Day3.CalculatePowerConsumption(input);

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