public void Solve(string input, int[] phaseSetting, int output) { var actual = Task2.Solve(new[] { input }); Assert.AreEqual(output, actual.output); Assert.AreEqual(phaseSetting, actual.phaseSetting); }
public static void Main() { try { Console.WriteLine(Task1.Solve(ReadFile("input.txt")).output); Console.WriteLine(Task2.Solve(ReadFile("input.txt")).output); } catch (Exception ex) { Console.WriteLine(ex); } Console.WriteLine("..."); Console.ReadLine(); }