public void Get()
 {
     // set expectations
     Expect.Call(mockedRuntimeCache.Get(mockedCache.GenerateKey("key"))).Return(null);
     mocks.ReplayAll();
     // verify
     mockedCache.Get("key");
     mocks.VerifyAll();
 }
Exemple #2
0
 public void GetNullKeysReturnsNull()
 {
     Assert.IsNull(thisCache.Get(null));
 }
Exemple #3
0
        public void Get()
        {
            mockedCache.Get("key");

            A.CallTo(() => mockedRuntimeCache.Get(mockedCache.GenerateKey("key"))).MustHaveHappened();
        }