public void Run(ITest test) { Console.WriteLine("******************* Start {0} *******************", test.GetType().Name); PrintMemorySize("first"); test.Initialize(); for (int i = 0; i < TestCount; i++) { test.Do(i); if (i % PrintCount == 0) { PrintMemorySize("do(" + i + ")"); } } test.Cleanup(); PrintMemorySize("last"); Console.WriteLine("******************* Finish {0} *******************", test.GetType().Name); }