コード例 #1
0
        public ResultsWriter(HtmlDocument document, ITestContext context)
        {
            _document = document;
            _context  = context;

            _document.AddStyle(HtmlClasses.CSS());
        }
コード例 #2
0
        public PreviewWriter(HtmlDocument document, ITestContext context)
        {
            _document = document;
            _context  = context;

            _document.AddStyle(HtmlClasses.CSS());


            _document.Push("div").AddClass("main");
        }
コード例 #3
0
        public HtmlDocument BuildReport(FixtureLibrary library)
        {
            var document = new HtmlDocument();

            document.Title = "Fixture / Grammar Report Writer";
            document.AddStyle(HtmlClasses.CSS());

            library.ActiveFixtures.Where(f => f.Errors.Any()).Each(f => writeFailedFixture(document, f));

            library.ActiveFixtures.Where(f => f.HasGrammarErrors()).Each(f =>
            {
                writeGrammarErrorsFromFixture(document, f);
            });

            return(document);
        }