StepCount() public method

public StepCount ( ) : int
return int
コード例 #1
0
ファイル: StepTester.cs プロジェクト: wbinford/storyteller
 public void step_count_of_a_step_with_child_leaves_and_grand_children()
 {
     Step step = new Step().WithChildren("a", new Step(), new Step(),
                                         new Step().WithChildren("b", new Step()).WithChildren("c", new Step(),
                                                                                               new Step()));
     step.StepCount().ShouldEqual(7);
 }
コード例 #2
0
ファイル: StepTester.cs プロジェクト: adymitruk/storyteller
 public void step_count_of_a_step_with_child_leaves()
 {
     Step step = new Step().WithChildren("a", new Step(), new Step(), new Step());
     step.StepCount().ShouldEqual(4);
 }