Exemple #1
0
        public void UntestedTask_Close_ShouldNotBePossible()
        {
            //Arrange
            State        implemented = new Implemented();
            SprintEntity task        = new Task(implemented);

            //Act
            task.Close();
            //Assert
            task.State.ShouldBeOfType(typeof(Implemented));
        }
Exemple #2
0
        public void TaskTested_Close_ShouldBeDone()
        {
            //Arrange
            State tested = new Tested();
            Task  task   = new Task(tested);

            //Act
            task.Close();
            //Assert
            task.State.ShouldBeOfType(typeof(Done));
        }