Exemplo n.º 1
0
        public void User_story_can_be_moved_from_given_position_to_the_next_position()
        {
            var userStory = new UserStory(3);
            var edge = new Edge();
            const int startingPosition = 1;
            edge.SetPosition(startingPosition,userStory);

            edge.MoveStoryOn(startingPosition);
            Assert.That(edge.GetStoryOnPosition(startingPosition+1), Is.EqualTo(userStory));
            Assert.That(edge.GetStoryOnPosition(startingPosition), Is.EqualTo(null));
        }
Exemplo n.º 2
0
        public void A_two_point_user_story_on_position_1_is_moved_to_done()
        {
            var userStory = new UserStory(2);
            var edge = new Edge();

            edge.SetPosition(1, userStory);
            Assert.That(edge.CompleteStory, Is.EqualTo(null));

            edge.MoveStoryOn(1);

            Assert.That(edge.CompleteStory, Is.EqualTo(userStory));
        }