private static void AddBackground(IHasSteps background, ITestBase testCase) { if (background == null) { return; } StepHelper.AddSteps(testCase, background.Steps, SyncUtil.BackgroundPrefix, false); }
internal static void UpdateTestcase(IHasSteps background, IHasSteps scenarioDefinition, ITestCase testCase) { var isScenarioOutline = scenarioDefinition is ScenarioOutline; AddBackground(background, testCase); StepHelper.AddSteps(testCase, scenarioDefinition?.Steps, "", isScenarioOutline); if (!isScenarioOutline) { return; } var scenarioOutline = (ScenarioOutline)scenarioDefinition; AddParameters(scenarioOutline, testCase); }