Пример #1
0
        public void SamplePart2()
        {
            var   program = InstructionParser.ParseProgram(_programTest1);
            Day08 day8    = new Day08();

            day8.ExecutePart2(program).Should().Be(8);
        }
Пример #2
0
        public void SamplePart1()
        {
            var      program = InstructionParser.ParseProgram(_programTest1);
            Computer p       = new Computer(program);

            p.ExecuteStopWhenLoop();
            p.GetAcc().Should().Be(5);
        }
Пример #3
0
 public void ParseProgram()
 {
     InstructionParser.ParseProgram(_programTest1).Should().HaveCount(9);
 }