public void PathFinder_NCardList_NormalExecution() { PathFinder finder = new PathFinder(); var first = new PathNode { CityFrom = "Melbourne", CityTo = "Keln" }; var third = new PathNode { CityFrom = "Moscow", CityTo = "Paris" }; var second = new PathNode { CityFrom = "Keln", CityTo = "Moscow" }; finder.AddNode(first); finder.AddNode(third); finder.AddNode(second); ICollection <PathNode> result = finder.FindOptimal(); CollectionAssert.AreEqual(new[] { first, second, third }, result); }