private void ExchangeWithRandomDataAndCheck(TransportClient client, Int32 dataSize, Int32 repetition, Int32 pauseMin = 0, Int32 pauseMax = 0) { Random pauseRandomGenerator = new Random(); for (Int32 repetitionCounter = 0; repetitionCounter < repetition; repetitionCounter++) { SingleExchangeWithRandomDataAndCheck(client, dataSize, repetitionCounter); if (pauseMin > 0 && pauseMax > 0) { Int32 pause = pauseRandomGenerator.Next(pauseMin, pauseMax); TimeDelay.Delay(pause); } } }