public void Should_SetAbsoluteExpiration_GivenCacheItemPolicyWithDirectoriesOrFilesChangeMonitor()
        {
            var converter = new CacheItemPolicyConverter();
            var policy = GivenCacheItemPolicyWithDirectoriesOrFilesChangeMonitor();
            var result = converter.Convert(policy);

            result.ChangeMonitors.Count.Should().Be(1);
        }
        public void Should_ConvertTo_SystemCachingObject_GivenBasicCacheItemPolicy()
        {
            var converter = new CacheItemPolicyConverter();

            var basicCacheItemPolicy = GivenBasicCacheItemPolicy();
            var result = converter.Convert(basicCacheItemPolicy);

            result.Should().NotBeNull();
        }
        public void Should_SetAbsoluteExpiration_GivenCacheItemPolicyWithSlidingeExpiration()
        {
            var converter = new CacheItemPolicyConverter();

            var policy = GivenCacheItemPolicyWithSlidingeExpiration();
            var result = converter.Convert(policy);

            (result.SlidingExpiration == policy.SlidingExpiration)
                .Should()
                .BeTrue();
        }
        public void Should_InstantiateCacheItemPolicyConverter()
        {
            var converter = new CacheItemPolicyConverter();

            converter.Should().NotBeNull();
        }