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); } }
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); } }