Esempio n. 1
0
 public virtual void SetupScenario()
 {
     _reportTarget   = CreateReportTarget();
     _scenarioRunner = new ScenarioRunner(this, _reportTarget);
     foreach (var step in ScenarioMapper.GetStepInvokers(this))
     {
         _scenarioRunner.AddStep(step);
     }
     _scenarioRunner.ReportScenario();
     _scenarioRunner.RunGivens();
     _scenarioRunner.RunWhen();
     _scenarioRunner.EnsureAtLeastOneThenExists();
     //thens are executed by NUnit
 }