public void TestCreateInstructionList() { string[] testData = BootExecutor.GetInputData(FilePathTestData); List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData); Assert.AreEqual(9, instructionList.Count); }
public void FindAnswerDayEightPuzzleOne() { string[] testData = BootExecutor.GetInputData(FilePathInputData); List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData); int accumulator = BootExecutor.RunBoot(instructionList); Assert.AreEqual(1797, accumulator); }
public void TestRunBoot() { string[] testData = BootExecutor.GetInputData(FilePathTestData); List <BootExecutor> instructionList = BootExecutor.CreateInstructionList(testData); int accumulator = BootExecutor.RunBoot(instructionList); Assert.AreEqual(5, accumulator); }
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); }