本文整理匯總了C#中System.Edge.GetStoryOnPosition方法的典型用法代碼示例。如果您正苦於以下問題:C# Edge.GetStoryOnPosition方法的具體用法?C# Edge.GetStoryOnPosition怎麽用?C# Edge.GetStoryOnPosition使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Edge
的用法示例。
在下文中一共展示了Edge.GetStoryOnPosition方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: User_story_can_be_set_to_first_and_last_position
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: User_story_can_be_moved_from_given_position_to_the_next_position
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: User_story_position_can_be_set_on_an_edge
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));
}