Esempio n. 1
0
        private ConnectionsXMLModel GetCOnnections()
        {
            const string nodesInputFile = @"Resources//connectionsInput.con.xml";

            var rdr = new InputNetworkReader();
            return rdr.GetConnections(nodesInputFile);
        }
        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
        }