Exemplo n.º 1
0
            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.");
            }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var t = new CloningServiceTest();

            t.RunAllTests();
        }