コード例 #1
0
 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");
 }
コード例 #2
0
 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");
 }
コード例 #3
0
 public void should_build_steps_from_sentences()
 {
     The.StepFrom("Do what you like".AsLocation())
     .Name.ShouldBe("Do_what_you_like");
 }
コード例 #4
0
 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");
 }