Esempio n. 1
0
    public void Part2(string[] input, long expected)
    {
        var day    = new Day18();
        var actual = day.Part2(input);

        Assert.Equal(expected, actual);
    }
Esempio n. 2
0
    public void Day18_Part2_Extra(string input, long part1)
    {
        var d = new Day18();

        d.OverrideInput(input.Replace(" ", string.Empty));

        Assert.Equal(part1.ToString(), d.Part2());
    }
Esempio n. 3
0
        public void Part2(string input, int output)
        {
            var result = Day18.Part2(input);

            Assert.True(result == output, $"Expected: {output}, Received: {result}");
        }
Esempio n. 4
0
    public void Day18_Part2(long ans)
    {
        var d = new Day18();

        Assert.Equal(ans.ToString(), d.Part2());
    }
Esempio n. 5
0
        public int Part2(string input)
        {
            var target = new Day18();

            return(target.Part2(input));
        }