public IResult[] Execute(IInstance[] instances, ITimes times)
 {
     return
         (instances
          .AsParallel()
          .WithDegreeOfParallelism(this.degree)
          .Select(Parallelism.CreateCallback(times))
          .ToArray());
 }
예제 #2
0
        private static void ExecuteTests()
        {
            ITimes times = new Times(1);
            IParallelism parallelism = new Parallelism(2);

            ITestSuit suit = Program.CreateSuit();
            IReport report = suit.Execute(times, parallelism);

            report.Print(new ConsolePrinter());
        }