public void RetrievesIfAlreadyCached()
        {
            Cached = true;

            CacheDecorator.TransformToCss(Less, FileName);

            Cache.Verify(c => c.Retrieve(CacheKey));
        }
        public void IncludesDependancyForAllImports()
        {
            Imports.Add("myfile.less");
            Imports.Add("myotherfile.less");

            CacheDecorator.TransformToCss(Less, FileName);

            Cache.Verify(c => c.Insert(CacheKey, It.Is <IEnumerable <string> >(i => Imports.All(s => i.Contains(s))), Css));
        }
        public void OneDependancyIfNoImports()
        {
            CacheDecorator.TransformToCss(Less, FileName);

            Cache.Verify(c => c.Insert(CacheKey, It.Is <IEnumerable <string> >(i => i.Count() == 1), Css));
        }
        public void DependanciesContainsFileName()
        {
            CacheDecorator.TransformToCss(Less, FileName);

            Cache.Verify(c => c.Insert(CacheKey, It.Is <IEnumerable <string> >(i => i.Contains(FileName)), Css));
        }
        public void InsertsIfNotAlreadyCached()
        {
            CacheDecorator.TransformToCss(Less, FileName);

            Cache.Verify(c => c.Insert(CacheKey, It.IsAny <IEnumerable <string> >(), Css));
        }