public static void TestPerfecShuffle <T>(int iterations, string methodName, TestPShuffle <T> method) { Console.WriteLine(" se ejecuta el metodo " + methodName + " en la estructura :" + typeof(T).Name); bool succes = false; T methodsOut; method.Invoke(iterations, out succes, out methodsOut); Console.WriteLine("se pudo completar la operacion ? " + succes); Console.WriteLine("\n"); Console.ReadLine(); }
public static void TestPerfecShuffle <T>(int iterations, string methodName, TestPShuffle <T> method) { Console.WriteLine("\n" + "------------------- test " + methodName + " --------------------" + "\n"); Console.WriteLine("Se ejecuta el metodo " + methodName + " en la estructura :" + typeof(T).Name + "\n"); bool succes = false; T methodsOut; method.Invoke(iterations, out succes, out methodsOut); Console.WriteLine("\n" + "La operacion concluye con exito :" + succes); Console.WriteLine("\n" + "------------------- end test --------------------" + "\n"); Console.ReadLine(); }