Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }