public void TestContainsNode() { RoadSystem anotherSystem = new RoadSystem(); var anotherNode = anotherSystem.CreateNewNode(2); var newNode = _roadSystem.CreateNewNode(1); Assert.IsFalse(_roadSystem.Contains(anotherNode)); Assert.IsTrue(_roadSystem.Contains(newNode)); }
public void TestLink_NodesNotInSameSystem() { var anotherSystem = new RoadSystem(); var anotherNode = anotherSystem.CreateNewNode(2); var node = _roadSystem.CreateNewNode(1); _roadSystem.Link(node, anotherNode, 1); }