public void Get() { // set expectations Expect.Call(mockedRuntimeCache.Get(mockedCache.GenerateKey("key"))).Return(null); mocks.ReplayAll(); // verify mockedCache.Get("key"); mocks.VerifyAll(); }
public void GetNullKeysReturnsNull() { Assert.IsNull(thisCache.Get(null)); }
public void Get() { mockedCache.Get("key"); A.CallTo(() => mockedRuntimeCache.Get(mockedCache.GenerateKey("key"))).MustHaveHappened(); }