Example #1
0
    public void Part1(string input, ulong numMoves, ulong expected)
    {
        var day    = new Day23();
        var actual = day.Part1(input, numMoves);

        Assert.Equal(expected, actual);
    }
Example #2
0
    public void Day23_Both_Parts(long part1, long part2)
    {
        var d = new Day23();

        Assert.Equal(part1.ToString(), d.Part1());
        Assert.Equal(part2.ToString(), d.Part2());
    }
Example #3
0
        public void SolveAfter100Moves()
        {
            var d      = new Day23();
            var answer = d.Part1("389125467");

            Assert.AreEqual("67384529", answer);
        }
        public void Day23Part1Test()
        {
            var day23 = new Day23();

            var actual   = day23.Part1(input, 100);
            var expected = 89573246;

            Assert.AreEqual(expected, actual);
        }
        public void Day23Part1Example2Test()
        {
            var day23 = new Day23();

            var actual = day23.Part1(new List <int> {
                3, 8, 9, 1, 2, 5, 4, 6, 7
            }, 100);
            var expected = 67384529;

            Assert.AreEqual(expected, actual);
        }