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