public int TestMagicianTimeCalculation(params string[] lines) { var magician = new InstructionMagician(); magician.Load(lines); return(magician.CalculateConstructionTime(2)); }
public string TestMagicianSorting(params string[] lines) { var magician = new InstructionMagician(); magician.Load(lines); return(magician.SortInstructions()); }
public void FindSolutionToPart2() { var magician = new InstructionMagician(60); magician.Load("Day7/input.txt"); var instructions = magician.CalculateConstructionTime(5); Assert.That(instructions, Is.EqualTo(1017)); }
public void FindSolutionToPart1() { var magician = new InstructionMagician(); magician.Load("Day7/input.txt"); var instructions = magician.SortInstructions(); Assert.That(instructions, Is.EqualTo("BGJCNLQUYIFMOEZTADKSPVXRHW")); }