public void AddStep_GivenAStepWithoutPosition_ShouldAddToTheEndOfTask() { sut.Task = TaskMother.GetNonEmptyTask(); var step = StepMother.GetNonEmptyStep(); sut.AddStep(step); Assert.That(step.Id, Is.EqualTo(sut[sut.TotalSteps - 1].Id)); }
public void AppendStep_GivenANonEmptyTask_ShouldAppendStepToTheEndOfTask() { sut.Task = TaskMother.GetNonEmptyTask(); var step = StepMother.GetNonEmptyStep(); sut.AppendStep(step); Assert.That(step.Id, Is.EqualTo(sut[sut.TotalSteps - 1].Id)); }