Exemple #1
0
        public MainForm()
        {
            InitializeComponent();
            MRTMap map = MRTMap.SharedMap;
            Dictionary <string, MRTExit> exits = map.exits;

            string[] keys = exits.Keys.ToArray();
            this.fromComboBox.Items.AddRange(keys);
            this.toComboBox.Items.AddRange(keys);
        }
Exemple #2
0
        public void TestLoadMap()
        {
            MRTMap map = MRTMap.SharedMap;
            Dictionary <string, MRTExit> exits = map.exits;

            string[] keys = exits.Keys.ToArray();
            string   from = keys[0];

            for (int i = 1; i < keys.Count(); i++)
            {
                string     to     = keys[i];
                MRTRoute[] routes = map.FindRoutes(from, to);
                Assert.IsTrue(routes.Count() > 0, string.Format("{0} {1}", from, to));
            }
        }