/// <summary> /// Writes the results of a test run to an HTML represenation. /// </summary> /// <param name="testRun">The test run to write to HTML.</param> /// <returns>The HTML string representation of the test run results.</returns> public string WriteToHtmlTestRunReport(TestRun testRun) { //testRun.CalculatProperties(this.reasonConfig.Select(x => x.Reason).ToList()); StringBuilder sb = new StringBuilder(); hW.WriteHeader(sb, this.config.FailuresOnly, this.GetNavBarOptions()); hW.WriteLineItem(sb, testRun.GetHtmlReportLineItem(true), config.FailuresOnly, true, true, true); hW.WriteFooter(sb); return(sb.ToString()); }