Пример #1
0
 public void TestBoxingString(IConstraint constraint, int count)
 {
     for (int i = 0; i < count; i++)
     {
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
         constraint.IsCorrect(s);
     }
 }
Пример #2
0
 public void TestBoxingInt(IConstraint constraint, int count)
 {
     for (int j = 0; j < count; j++)
     {
         object i = j;
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
         constraint.IsCorrect(i);
     }
 }