Ejemplo n.º 1
0
            private static ITest[] Tests(IntByRef counter, int numTests, int[] failingIndices
                                         )
            {
                var tests = new ITest[numTests];

                for (var i = 0; i < numTests; i++)
                {
                    tests[i] = new CountingTest(counter, i + 1, Arrays4.IndexOf
                                                    (failingIndices, i) >= 0);
                }
                return(tests);
            }
Ejemplo n.º 2
0
 private static ITest[] Tests(IntByRef counter, int numTests, int[] failingIndices
     )
 {
     var tests = new ITest[numTests];
     for (var i = 0; i < numTests; i++)
     {
         tests[i] = new CountingTest(counter, i + 1, Arrays4.IndexOf
             (failingIndices, i) >= 0);
     }
     return tests;
 }