public static void Main(string[] args) { var cloningServiceTest = new CloningServiceTest(); var allTests = cloningServiceTest.AllTests; while (true) { var line = Console.ReadLine(); if (string.IsNullOrEmpty(line)) { break; } var test = allTests[int.Parse(line)]; try { test.Invoke(); } catch (Exception ex) { Console.WriteLine($"Failed on {test.GetMethodInfo().Name}."); } } Console.WriteLine("Done."); }
static void Main(string[] args) { var t = new CloningServiceTest(); t.RunAllTests(); }