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); }
public void clone_last_node_does_nothing_and_returns_false_if_no_other_steps_exist() { var leaf = new StepLeaf(); leaf.CloneLastStep().ShouldBeNull(); }