Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldNotReturnExpiredValueThroughPut()
        public virtual void ShouldNotReturnExpiredValueThroughPut()
        {
            assertNull(_cache.put(1, "first"));
            assertThat(_cache.put(1, "second"), equalTo("first"));
            _fakeTicker.advance(_ttl + 1, MILLISECONDS);
            assertNull(_cache.put(1, "third"));
        }