public void Part2Sample() { InstructionExecuter instructionExecuter = new InstructionExecuter(new Part2MaskApplier()); instructionExecuter.Execute(GetSampleDataForPart2()); long answer = instructionExecuter.GetSumOfAllValues(); Assert.Equal(208, answer); }
public void Part2() { InstructionExecuter instructionExecuter = new InstructionExecuter(new Part2MaskApplier()); instructionExecuter.Execute(StringListRetriever.Retreive("InputList14.txt").ToList()); long answer = instructionExecuter.GetSumOfAllValues(); Assert.Equal(4160009892257, answer); }
public void Part1() { InstructionExecuter instructionExecuter = new InstructionExecuter(new Part1MaskApplier()); instructionExecuter.Execute(StringListRetriever.Retreive("InputList14.txt").ToList()); long answer = instructionExecuter.GetSumOfAllValues(); Assert.Equal(17481577045893, answer); }