public override void Execute(IResultsWriter resultsWriter)
 {
     CellResult cellResult = Evaluate();
     resultsWriter.Begin(cellResult);
     Parent.RowResult.Add(cellResult);
     resultsWriter.End(cellResult);
 }
Exemple #2
0
 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;
 }
Exemple #4
0
        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;
        }
Exemple #5
0
 public void AddRowResult(RowResult result, IResultsWriter resultsWriter)
 {
     resultsWriter.Begin(result);
     testResults.Add(result);
     resultsWriter.End(result);
 }