public void UntestedTask_Close_ShouldNotBePossible() { //Arrange State implemented = new Implemented(); SprintEntity task = new Task(implemented); //Act task.Close(); //Assert task.State.ShouldBeOfType(typeof(Implemented)); }
public void NewTask_MoveToInProgress_ShouldNotBePossible() { //Arrange State New = new New(); Task task = new Task(New); //Act task.MoveTo(new InProgress()); //Assert task.State.ShouldBeOfType(typeof(New)); }
public void TaskTested_Close_ShouldBeDone() { //Arrange State tested = new Tested(); Task task = new Task(tested); //Act task.Close(); //Assert task.State.ShouldBeOfType(typeof(Done)); }