Ejemplo n.º 1
0
        public void clone_last_node_if_a_node_exists()
        {
            var leaf = new StepLeaf();
            leaf.Add(new Step("a"));

            leaf.CloneLastStep().ShouldNotBeTheSameAs(leaf.AllSteps()[0]);

            leaf.AllSteps().Count.ShouldEqual(1);
        }
Ejemplo n.º 2
0
        public void clone_last_node_if_a_node_exists()
        {
            var leaf = new StepLeaf();

            leaf.Add(new Step("a"));

            leaf.CloneLastStep().ShouldNotBeTheSameAs(leaf.AllSteps()[0]);

            leaf.AllSteps().Count.ShouldEqual(1);
        }
Ejemplo n.º 3
0
 public void clone_last_node_does_nothing_and_returns_false_if_no_other_steps_exist()
 {
     var leaf = new StepLeaf();
     leaf.CloneLastStep().ShouldBeNull();
 }
Ejemplo n.º 4
0
        public void clone_last_node_does_nothing_and_returns_false_if_no_other_steps_exist()
        {
            var leaf = new StepLeaf();

            leaf.CloneLastStep().ShouldBeNull();
        }