public void Test_DayNine_PartOne() { var input = Path.Combine(TestHelper.TestDir, "Day9.Input.txt"); var intcode = new Core.Classes.Intcode(input); //< The input here is'1' intcode.AddInput(1); intcode.Process(); //< Should only be one output as no Opcodes are failing Assert.IsTrue(intcode.Outputs.Count == 1); //< The resulting BOOST keycode should be '3546494377' Assert.IsTrue(intcode.Outputs.Single().Item2 == 3546494377); }
public void Test_DayFive_PartTwo() { var fn = Path.Combine(TestHelper.TestDir, "Day5.Input.txt"); try { //< Generate and run the Intcode var intcode = new Core.Classes.Intcode(fn); intcode.AddInput(5); intcode.Process(); //< There should only be one output var output = intcode.Outputs.Single(); Assert.IsTrue(output.Item2 == 9217546); } catch (Exception e) { //< Rip int fail = 1; } }