示例#1
0
        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));
        }
示例#2
0
        public void TestLink_NodesNotInSameSystem()
        {
            var anotherSystem = new RoadSystem();
            var anotherNode = anotherSystem.CreateNewNode(2);
            var node = _roadSystem.CreateNewNode(1);

            _roadSystem.Link(node, anotherNode, 1);
        }