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 NewTask_MoveToInProgress_ShouldNotBePossible()
        {
            //Arrange
            State New  = new New();
            Task  task = new Task(New);

            //Act
            task.MoveTo(new InProgress());
            //Assert
            task.State.ShouldBeOfType(typeof(New));
        }
Exemple #3
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));
        }