public void DeleteStationTest() { int nmb1 = 1; int nmb2 = stationManager.stationCount() + 2; int preview = stationManager.stationCount(); stationManager.DeleteStation(nmb2); Assert.AreEqual(preview, stationManager.stationCount()); stationManager.DeleteStation(nmb1); Assert.AreEqual(preview - 1, stationManager.stationCount()); }
public void removeStation() { StationManager.DeleteStation(); Thread.Sleep(100); String[] xd = StationManager.getStation(); this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]); }