internal StepBuilder(List <Step> previousSteps, Runnable runnable, BuildableTest previousPartiallyBuiltTest) { StoryText = previousPartiallyBuiltTest.StoryText; ScenarioText = previousPartiallyBuiltTest.ScenarioText; BdTestBase = previousPartiallyBuiltTest.BdTestBase; CallerMember = previousPartiallyBuiltTest.CallerMember; CallerFile = previousPartiallyBuiltTest.CallerFile; TestId = previousPartiallyBuiltTest.TestId; Guid = previousPartiallyBuiltTest.Guid; CustomTestInformation = previousPartiallyBuiltTest.CustomTestInformation; TestHolder.NotRun[previousPartiallyBuiltTest.Guid] = this; ExistingSteps = previousSteps; ExistingSteps.Add(new Step(runnable, StepType, Guid, ReportId)); }
internal AndGiven(List <Step> previousSteps, Runnable runnable, BuildableTest previousPartiallyBuiltTest) : base(previousSteps, runnable, previousPartiallyBuiltTest) { }
internal static MethodInfo GetTestMethod(this BuildableTest buildableTest) => buildableTest?.BdTestBase?.GetType()?.GetMethods()?.FirstOrDefault(x => x.Name == buildableTest.CallerMember);
internal static Type GetTestClass(this BuildableTest buildableTest) => buildableTest?.BdTestBase?.GetType();