internal StepBuilder(List <Step> previousSteps, Expression <Action> action, TestDetails testDetails) { TestDetails = testDetails; StoryText = testDetails.StoryText; ScenarioText = testDetails.ScenarioText; TestMap.NotRun[testDetails.GetGuid()] = this; ExistingSteps = previousSteps; ExistingSteps.Add(new Step(action, StepType)); }
internal StepBuilder(List <Step> previousSteps, Runnable runnable, TestDetails testDetails) { TestDetails = testDetails; StoryText = testDetails.StoryText; ScenarioText = testDetails.ScenarioText; TestMap.NotRun[testDetails.GetGuid()] = this; ExistingSteps = previousSteps; ExistingSteps.Add(new Step(runnable, StepType)); }