Ejemplo n.º 1
0
        public void Part2Sample()
        {
            InstructionExecuter instructionExecuter = new InstructionExecuter(new Part2MaskApplier());

            instructionExecuter.Execute(GetSampleDataForPart2());
            long answer = instructionExecuter.GetSumOfAllValues();

            Assert.Equal(208, answer);
        }
Ejemplo n.º 2
0
        public void Part2()
        {
            InstructionExecuter instructionExecuter = new InstructionExecuter(new Part2MaskApplier());

            instructionExecuter.Execute(StringListRetriever.Retreive("InputList14.txt").ToList());
            long answer = instructionExecuter.GetSumOfAllValues();

            Assert.Equal(4160009892257, answer);
        }
Ejemplo n.º 3
0
        public void Part1()
        {
            InstructionExecuter instructionExecuter = new InstructionExecuter(new Part1MaskApplier());

            instructionExecuter.Execute(StringListRetriever.Retreive("InputList14.txt").ToList());
            long answer = instructionExecuter.GetSumOfAllValues();

            Assert.Equal(17481577045893, answer);
        }