コード例 #1
0
        public void FlushTest()
        {
            //Arrange
            var redisAdapterMock = new Mock <IRedisAdapter>();
            var splitCache       = new RedisSplitCache(redisAdapterMock.Object);

            //Act
            splitCache.Flush();

            //Assert
            redisAdapterMock.Verify(mock => mock.Flush(), Times.Once());
        }
コード例 #2
0
 public void FlushTest()
 {
     //Act
     _redisSplitCache.Flush();
 }