public override void Execute(IResultsWriter resultsWriter) { CellResult cellResult = Evaluate(); resultsWriter.Begin(cellResult); Parent.RowResult.Add(cellResult); resultsWriter.End(cellResult); }
public void Execute(IResultsWriter resultsWriter) { var result = CreateResult(); resultsWriter.Begin(result); ChildInstructions.ForEach(instruction => instruction.Execute(resultsWriter)); resultsWriter.End(result); }
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 ScenarioResult Test(RawTest[] rawTests, IResultsWriter resultsWriter) { var results = new ScenarioResult(name); resultsWriter.Begin(results); UserCache cache = new UserCache(); foreach (RawTest rawTest in rawTests) { var realTest = rawTest.CreateRealTest(assemblies, cache); results.Add(realTest.Test(resultsWriter)); } resultsWriter.End(results); return results; }
public void AddRowResult(RowResult result, IResultsWriter resultsWriter) { resultsWriter.Begin(result); testResults.Add(result); resultsWriter.End(result); }