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 TaskTested_Close_ShouldBeDone() { //Arrange State tested = new Tested(); Task task = new Task(tested); //Act task.Close(); //Assert task.State.ShouldBeOfType(typeof(Done)); }