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

        var result = Day3.CalculateLifeSupportRating(input);

        Assert.That(result, Is.EqualTo(230));
    }
Exemplo n.º 2
0
    public void Part2()
    {
        var result = _day3.CalculateLifeSupportRating(_testInput);

        Assert.Equal(230, result);
    }