//broken - this should get something instead of scenarios[] cuz scenarios test rawTests public SuiteResult Test(Assemblies assemblies, Scenario[] scenarios, IResultsWriter resultsWriter) { var scenarioResults = new List<ScenarioResult>(scenarios.Length); Array.ForEach(scenarios, scenario => scenarioResults.Add(scenario.Test(null, resultsWriter))); return new SuiteResult(suiteName, scenarioResults); }
private ScenarioResult ExecuteScenarioFor(string name, string fileName) { RawTest[] rawTests = csvReader.Read(fileName); var acceptanceScenario = new Scenario(name, new Assemblies(Files.Assemblies.TestUnitList)); return acceptanceScenario.Test(rawTests, new SimpleTextResultsWriter(new StringOutputChannel())); }
public void Test(string scenarioName, RawTest[] rawTests, IResultsWriter resultsWriter) { var scenario = new Scenario(scenarioName, assemblies); scenario.Test(rawTests, resultsWriter); }
//broken - this should get something instead of scenarios[] public void Test(string suiteName, Scenario[] scenarios, IResultsWriter resultsWriter) { var suite = new Suite(suiteName); suite.Test(assemblies, scenarios, resultsWriter); }