예제 #1
0
        public void MovingToEmptySpace_StaysAtNumber()
        {
            Day2 day2 = new Day2();

            day2.SetupForPart2();
            Assert.AreEqual("5", day2.Solve(""));
            Assert.AreEqual("5", day2.Solve("U"));
            Assert.AreEqual("5", day2.Solve("D"));
        }
예제 #2
0
        public static void Main()
        {
            //Day1.Run (ReadFile("../../Day1/Day1Input.txt"));
            Day2 day2 = new Day2();

            day2.SetupForPart2();
            string answer = day2.Solve(ReadFile("../../Day2/Input.txt"));

            Console.WriteLine(answer);
        }