예제 #1
0
        private EdgesXMLModel GetEdges()
        {
            const string nodesInputFile = @"Resources//edgesInput.edg.xml";

            var rdr = new InputNetworkReader();
            return rdr.GetEdges(nodesInputFile);
        }
예제 #2
0
        private ConnectionsXMLModel GetCOnnections()
        {
            const string nodesInputFile = @"Resources//connectionsInput.con.xml";

            var rdr = new InputNetworkReader();
            return rdr.GetConnections(nodesInputFile);
        }
        public void ShouldReadNodes()
        {
            const string nodesInputFile = @"Resources//nodesInput.nod.xml";

            var rdr = new InputNetworkReader();
            var nodes = rdr.GetNodes(nodesInputFile);

            Assert.AreEqual("1/1", nodes.node.Last().id);
            //..reszsta
        }
        public void ShouldReadEdges()
        {
            const string nodesInputFile = @"Resources//edgesInput.edg.xml";

            var rdr = new InputNetworkReader();
            var edges = rdr.GetEdges(nodesInputFile);

            Assert.AreEqual("1/1to1/0", edges.edge.Last().id);
            //..reszsta
        }
        public void ShouldReadConnections()
        {
            const string nodesInputFile = @"Resources//connectionsInput.con.xml";

            var rdr = new InputNetworkReader();
            var connections = rdr.GetConnections(nodesInputFile);

            Assert.AreEqual("1/1to1/0", connections.connection.Last().from);
            Assert.AreEqual("1/0to1/1", connections.connection.Last().to);
            //..reszsta
        }