Пример #1
0
 private RowResult ExecuteRowInstructions(IResultsWriter resultsWriter)
 {
     RowResult rowResult = new RowResult();
     AddRowResult(rowResult, resultsWriter);
     resultsWriter.Begin(rowResult);
     ChildInstructions.ForEach(instruction => instruction.Execute(resultsWriter));
     resultsWriter.End(rowResult);
     return RowResult;
 }
 public void End(RowResult row)
 {
     writers.ForEach(writer => writer.End(row));
 }
Пример #3
0
 public void AddRowResult(RowResult result, IResultsWriter resultsWriter)
 {
     RowResult = result;
 }
Пример #4
0
 public void AddRowResult(RowResult result, IResultsWriter resultsWriter)
 {
     resultsWriter.Begin(result);
     testResults.Add(result);
     resultsWriter.End(result);
 }
 public void Begin(RowResult row)
 {
     writers.ForEach(writer => writer.Begin(row));
 }
 public void Begin(RowResult row)
 {
     // do nothing
 }
 public static string ReportOn(RowResult result)
 {
     return "Row " + (result.Passed ? "Passed" : result.Failed ? "Failed" : "Errored");
 }
 public void End(RowResult row)
 {
     // do nothing
 }
 public void End(RowResult row)
 {
     EndCurrentElement();
 }
Пример #10
0
 public void Begin(RowResult row)
 {
     xmlWriter.WriteStartElement("tr");
 }