public void TheStrategyIsDisabledIfBeaconMaxAgeIsSetToLessThanZero() { // given var configuration = MockBeaconCacheConfig(-1L, 1000L, 2000L); var target = CreateTimeEvictionStrategyWith(configuration); // then Assert.That(target.IsStrategyDisabled, Is.True); Assert.That(mockLogger.ReceivedCalls(), Is.Empty); Assert.That(mockBeaconCache.ReceivedCalls(), Is.Empty); Assert.That(mockTimingProvider.ReceivedCalls(), Is.Empty); }
public void ConstructorTakesOverBeaconCache() { // when CreateSessionCreator(); // then _ = mockInput.Received(1).BeaconCache; Assert.That(mockBeaconCache.ReceivedCalls(), Is.Empty); }