private void SolveDayTwoProblem() { var programMemory = repository.GetDayTwoInput().ToList(); outputBuilder.AppendLine($"Result of first half of Day two's problem: {DayTwoCommands.RunIntcode(programMemory, 12, 2)}"); outputBuilder.AppendLine($"Result of second half of Day two's problem: {DayTwoCommands.FindNounAndVerb(programMemory, 19690720)}"); }
public void CalculateResultIntcode( [Values(new int[] { 1, 9, 10, 3, 2, 3, 11, 0, 99, 30, 40, 50 })] IEnumerable <int> intcode, [Values(3500)] int result) { Assert.AreEqual(result, DayTwoCommands.RunIntcode(intcode)); }