Beispiel #1
0
        public static void Main()
        {
            try
            {
                Console.WriteLine(Task1.Solve(ReadFile("input.txt")));
                Console.WriteLine(Task2.Solve(ReadFile("input.txt")));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

            Console.WriteLine("...");
            Console.ReadLine();
        }
Beispiel #2
0
 public void Solve(string line1, string line2, int distance)
 {
     Assert.AreEqual(distance, Task2.Solve(new[] { line1, line2 }));
 }