public void End(CellResult cell) { writers.ForEach(writer => writer.End(cell)); }
public void Begin(CellResult cell) { // do nothing }
public void Begin(CellResult cell) { writers.ForEach(writer => writer.Begin(cell)); }
public static string ReportOn(CellResult result) { return string.Format("Exp >{0}< Act >{1}< Exc >{2}<", result.ExpectedResult, result.ActualResult, result.Exception == null ? string.Empty : result.Exception.Message); }
public void End(CellResult cell) { if (cell.Passed) { channel.Append("."); } else if (cell.Failed) { channel.AppendFailure("F"); } else if (cell.Errored) { channel.AppendError("E"); } }
public void Add(CellResult cellResult) { cellResults.Add(cellResult); Count(cellResult); }
public void End(CellResult cell) { if (Equals(cell.ExpectedResult, cell.ActualResult)) { xmlWriter.WriteRaw(cell.ActualResult); } else if (cell.Exception == null) { xmlWriter.WriteRaw(string.Format("Expected:<br/>{0}<hr/ >Actual:<br/>{1}", cell.ExpectedResult, cell.ActualResult)); } else { xmlWriter.WriteRaw("Exception: " + cell.Exception.Message); WriteBr(); xmlWriter.WriteRaw("Stack trace: " + cell.Exception.StackTrace.Replace(Environment.NewLine, "<br/>")); } xmlWriter.WriteEndElement(); }
public void Begin(CellResult cell) { string @class = "pass"; if (cell.Passed) { @class = "pass"; } else if (cell.Failed) { @class = "fail"; } else if (cell.Errored) { @class = "error"; } xmlWriter.WriteStartElement("td"); xmlWriter.WriteAttributeString("class", @class); }