コード例 #1
0
    public void Should_calculate_biggest_magnitude_for_two_numbers()
    {
        var inputPath = Path.Combine(TestContext.CurrentContext.TestDirectory, "Day18Tests/Input/example.txt");
        var input     = File.ReadLines(inputPath);

        var result = Day18.CalculateBiggestMagnitude(input.ToArray());

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