コード例 #1
0
        public void AddStationTest()
        {
            String name1 = "1";
            String name2 = "x";

            int preview = stationManager.stationCount();

            stationManager.AddStation(name1);

            Assert.AreEqual(preview, stationManager.stationCount());
            stationManager.AddStation(name2);
            Assert.AreEqual(preview + 1, stationManager.stationCount());
        }
コード例 #2
0
 public void addStation(String name)
 {
     StationManager.AddStation(name);
     Thread.Sleep(100);
     String[] xd = StationManager.getStation();
     this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]);
 }