Beispiel #1
0
        //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);
        }
Beispiel #2
0
 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()));
 }
Beispiel #3
0
 public void Test(string scenarioName, RawTest[] rawTests, IResultsWriter resultsWriter)
 {
     var scenario = new Scenario(scenarioName, assemblies);
     scenario.Test(rawTests, resultsWriter);
 }
Beispiel #4
0
 //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);
 }