예제 #1
0
        public void Part1_WithExampleData_PlaysGame()
        {
            var input  = "389125467";
            var result = Day23.SolvePart1(input);

            Assert.Equal(67384529, result);
        }
예제 #2
0
        public void Part1( )
        {
            day23.Answer = "a";
            var actual = day23.SolvePart1( );

            Assert.AreEqual("2", actual);
        }
예제 #3
0
        public void Part1RealPuzzle()
        {
            var input  = GetPuzzleInput();
            var result = Day23.SolvePart1(input);

            Assert.Equal(8281, result);
        }
예제 #4
0
        public void Part1(int iterations, string expected)
        {
            day23.IteratePart1 = iterations;
            var actual = day23.SolvePart1( );

            Assert.AreEqual(expected, actual);
        }
예제 #5
0
        public void Part1()
        {
            var result = Day23.SolvePart1(_input);

            Assert.Equal(89573246, result);
        }
예제 #6
0
        public void Part1()
        {
            var actual = day23.SolvePart1();

            Assert.AreEqual("13685", actual);
        }
예제 #7
0
 public void Test(string input, int moves, string expected)
 {
     Assert.Equal(expected, Day23.SolvePart1(input, moves));
 }