Exemplo n.º 1
0
        public void VerifyFy_Input_Output(string program, int input, int expectedOutput)
        {
            var runner = new IntCode(program);

            runner.In(input);

            runner.RunUntilHalt();

            Assert.Equal(expectedOutput, runner.Out);
        }
Exemplo n.º 2
0
        public async Task Day5Part2()
        {
            var program = await Util.ReadTestData("Day5.txt");

            var runner = new IntCode(program);

            runner.In(5);

            runner.RunUntilHalt();

            Assert.Equal(14110739, runner.Out);
        }