public void SamplePart2() { var program = InstructionParser.ParseProgram(_programTest1); Day08 day8 = new Day08(); day8.ExecutePart2(program).Should().Be(8); }
public void SamplePart1() { var program = InstructionParser.ParseProgram(_programTest1); Computer p = new Computer(program); p.ExecuteStopWhenLoop(); p.GetAcc().Should().Be(5); }
public void ParseProgram() { InstructionParser.ParseProgram(_programTest1).Should().HaveCount(9); }