private bool HadMultipleAttemptsRecently(DateTime currentTimestamp)
 {
     return
         (attemptTimestamps.Count == attemptTimestamps.Capacity &&
          attemptTimestamps.All(ts => currentTimestamp - ts <= RecencyThreshold));
 }
Example #2
0
 public void BufferStartsEmpty()
 {
     Assert.Empty(sut.All());
 }