예제 #1
0
        public void User_story_can_be_set_to_first_and_last_position()
        {
            var userStory = new UserStory(5);
            var edge = new Edge();

            edge.SetPosition(1, userStory);
            edge.SetPosition(5, userStory);

            Assert.That(edge.GetStoryOnPosition(1), Is.EqualTo(userStory));
            Assert.That(edge.GetStoryOnPosition(5), Is.EqualTo(userStory));
        }
예제 #2
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));
        }
예제 #3
0
        public void User_story_position_can_be_set_on_an_edge()
        {
            var userStory = new UserStory(2);
            var edge = new Edge();

            edge.SetPosition(1, userStory);
            Assert.That(edge.GetStoryOnPosition(1), Is.EqualTo(userStory));
        }