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()); }
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]); }