Ejemplo n.º 1
0
    public void Should_calculate_syntax_error_score()
    {
        var inputPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Day10Tests/Input/example.txt");
        var input     = File.ReadLines(inputPath);

        var result = Day10.CalculateSyntaxErrorScore(input.ToArray());

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