public void Should_call_inner_on_remove() { sut.Remove("a-key"); A.CallTo(() => cache.Remove("a-key")) .MustHaveHappened(); }
public void Should_call_inner_on_remove() { sut.Remove("a-key"); cache.Verify(x => x.Remove("a-key"), Times.Once()); }