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)); }
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)); }
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)); }