예제 #1
0
    public void Should_calculate_lit_pixels()
    {
        var inputPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Day20Tests/Input/example.txt");
        var input     = File.ReadLines(inputPath);

        var result = Day20.CalculateLitPixels(input.ToArray(), 2);

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