public CssEvaluationResult Evaluate(string filename, string[] contents, bool mergeBlocks)
        {
            var joinedString = string.Join("", contents);

            if (!joinedString.Contains("style", StringComparison.OrdinalIgnoreCase))
            {
                return(null);
            }

            var page  = CssBlockContentEvaluator.Split(contents, PageEvaluationMode.Any, mergeBlocks);
            var block = CssBlockEvaluator.Evaluate(joinedString);
            var razor = CssRazorEvaluator.Evaluate(joinedString);

            if (page.Any() || block.Any() || razor.Any())
            {
                return(new CssEvaluationResult
                {
                    FileName = filename,
                    Page = page.Select(x => x.Lines.Count()).ToList(),
                    Inline = block,
                    Razor = razor
                });
            }

            return(null);
        }
        public void Page()
        {
            var raw = AssetRetriever.GetFileAndContent(AvailableTestingResources.TestingResource);

            var evaluator = new CssBlockContentEvaluator();

            var result = evaluator.Split(raw.Contents, PageEvaluationMode.Any, false);

            Assert.AreEqual(1, result.Length);
            Assert.AreEqual(6, result[0].Lines.Count);
        }