本文整理汇总了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));
}