public TestCompositeStep Bypassed_step_group() { return(TestCompositeStep.Create( Given_step_one, When_step_two_is_bypassed, Then_step_three)); }
public TestCompositeStep Failing_step_group() { return(TestCompositeStep.Create( Given_step_one, When_step_two_throwing_exception, Then_step_three)); }
public TestCompositeStep Ignored_step_group() { return(TestCompositeStep.Create( Given_step_one, When_step_two_ignoring_scenario, Then_step_three)); }
public TestCompositeStep Passing_step_group() { return(TestCompositeStep.Create( Given_step_one, When_step_two, Then_step_three)); }
public TestCompositeStep Passing_step_group_with_comment() { return(TestCompositeStep.Create( Given_step_one, When_step_two_with_comment, Then_step_three)); }
public void Steps_should_get_access_to_DI_container_via_GetDependencyResolver() { var resolvers = new List <IDependencyResolver>(); void Step1() { resolvers.Add(StepExecution.Current.GetScenarioDependencyResolver()); } void Step3() { resolvers.Add(StepExecution.Current.GetScenarioDependencyResolver()); } void Step4() { resolvers.Add(StepExecution.Current.GetScenarioDependencyResolver()); } TestCompositeStep Step2() { resolvers.Add(StepExecution.Current.GetScenarioDependencyResolver()); return(TestCompositeStep.Create(Step3, Step4)); } GetFeatureRunner().GetBddRunner(this).Test().TestScenario(TestStep.CreateSync(Step1), TestStep.CreateComposite(Step2)); Assert.That(resolvers.Count, Is.EqualTo(4)); Assert.That(resolvers.Any(x => x == null), Is.False); Assert.That(resolvers.Distinct().Count(), Is.EqualTo(1)); }
private TestCompositeStep Decorated_grouped_steps() { return(TestCompositeStep.Create(Decorated_step)); }
private TestCompositeStep Grouped_steps() { return(TestCompositeStep.Create( Commented_step1, Commented_step2)); }
public TestCompositeStep Passing_composite() { return(TestCompositeStep.Create(Passing_step, Passing_step)); }
public TestCompositeStep Multiassert_failing_composite() { return(TestCompositeStep.Create(Failing_step, Failing_step, Passing_step)); }
public TestCompositeStep Multiassert_ignoring_steps() { return(TestCompositeStep.Create(Ignoring_step, Ignoring_step, Passing_step)); }
private TestCompositeStep Step_group_one() { return(TestCompositeStep.Create(Step_one, Step_two)); }