コード例 #1
0
        public void Test()
        {
            var cache          = new Mock <ICache>();
            var classUnderTest = new CompositeCache();

            classUnderTest.Add(cache.Object);

            classUnderTest.Invalidate();

            cache.Verify(c => c.Invalidate());
        }