Example #1
0
 public void Get()
 {
     // set expectations
     Expect.Call(mockedRuntimeCache.Get(mockedCache.GenerateKey("key"))).Return(null);
     mocks.ReplayAll();
     // verify
     mockedCache.Get("key");
     mocks.VerifyAll();
 }
Example #2
0
        public void Get()
        {
            mockedCache.Get("key");

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