public ResultsWriter(HtmlDocument document, ITestContext context) { _document = document; _context = context; _document.AddStyle(HtmlClasses.CSS()); }
public PreviewWriter(HtmlDocument document, ITestContext context) { _document = document; _context = context; _document.AddStyle(HtmlClasses.CSS()); _document.Push("div").AddClass("main"); }
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); }