public void should_create_a_Step_with_multiple_Args() { The.StepFrom(@"If ""X"" and ""Y"" happens".AsLocation()) .Name.ShouldBe("If__and__happens"); And.LastStep.Args.Count.ShouldBe(2); And.LastStep.Args[1].ShouldBe("Y"); }
public void should_create_a_Step_with_Args() { The.StepFrom(@"If ""X"" happens".AsLocation()) .Name.ShouldBe("If__happens"); And.LastStep.Args.Count.ShouldBe(1); And.LastStep.Args[0].ShouldBe("X"); }
public void should_build_steps_from_sentences() { The.StepFrom("Do what you like".AsLocation()) .Name.ShouldBe("Do_what_you_like"); }
public void should_allow_to_start_a_Step_with_an_Arg() { The.StepFrom(@"""Arg"" starting a Step".AsLocation()) .Name.ShouldBe("starting_a_Step"); And.LastStep.Args[0].ShouldBe("Arg"); }