Example #1
0
        public void WriteTest(PageResult result)
        {
            MakeStylesheet();

            var outputFile = Path.Combine(myFolder.OutputPath, myPath.OutputFileName);

            myFolderModel.MakeFile(outputFile, HtmlDecorator.AddToStart(ResultComment(result.TestCounts), AddStyleSheetLink(result.Content)));
            myFolder.ListFile(outputFile, result.TestCounts, result.ElapsedTime);
        }
Example #2
0
        static string AddStyleSheetLink(string input)
        {
            var scanner = new Scanner(input);

            while (true)
            {
                scanner.FindTokenPair("<link", ">");
                if (scanner.Body.IsEmpty)
                {
                    break;
                }
                if (scanner.Body.Contains("fit.css"))
                {
                    return(input);
                }
            }
            return(HtmlDecorator.AddToStart(styleSheetLink, input));
        }
Example #3
0
 public void WriteTest(PageResult result)
 {
     MakeStylesheet();
     myFolderModel.MakeFile(OutputFile, HtmlDecorator.AddToStart(ResultComment(result.TestCounts), AddStyleSheetLink(result.Content)));
 }