public void SolvePart2() { var intcode = new AdventOfCode2019.Day05.Part02.Intcode(); int exitCode = intcode.Run(thermalRadSystemId, "../../../input/day_05.txt"); Assert.Equal(0, exitCode); Assert.Equal(14195011, intcode.Diagnostics.Peek()); }
public void Part2() { var intcode = new AdventOfCode2019.Day05.Part02.Intcode(); int exitCode = intcode.Run(thermalRadSystemId, new int[] { 1002, 4, 3, 4, 33 }); Assert.Equal(0, exitCode); Assert.All( intcode.Diagnostics, x => Assert.Equal(0, x)); }