StepCount() public method

public StepCount ( ) : int
return int
Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }