コード例 #1
0
        public void TestCreateInstructionList()
        {
            string[]            testData        = BootExecutor.GetInputData(FilePathTestData);
            List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData);

            Assert.AreEqual(9, instructionList.Count);
        }
コード例 #2
0
        public void FindAnswerDayEightPuzzleOne()
        {
            string[]            testData        = BootExecutor.GetInputData(FilePathInputData);
            List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData);
            int accumulator = BootExecutor.RunBoot(instructionList);

            Assert.AreEqual(1797, accumulator);
        }
コード例 #3
0
        public void TestRunBoot()
        {
            string[]            testData        = BootExecutor.GetInputData(FilePathTestData);
            List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData);
            int accumulator = BootExecutor.RunBoot(instructionList);

            Assert.AreEqual(5, accumulator);
        }
コード例 #4
0
        public void FindAnswerDayEightPuzzleTwo()
        {
            string[]            testData        = BootExecutor.GetInputData(FilePathInputData2);
            List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData);
            int accumulator = BootExecutor.RunBoot(instructionList);

            Assert.Warn("Not solved");

            // Assert.Less(accumulator, 1752);
            // Assert.AreEqual(1797, accumulator);
        }