public void decreaseTemp() { StationManager.DecreaseTargetTemp(); Thread.Sleep(100); String[] xd = StationManager.getStation(); this.Station = IStation.createStation(float.Parse(xd[2]), float.Parse(xd[1]), xd[0]); }
public void DecreaseTargetTempTest() { String[] elements = stationManager.getStation(0); DataStation dataStation1 = new TestStation(float.Parse(elements[2]), float.Parse(elements[1]), elements[0]); stationManager.DecreaseTargetTemp(0); elements = stationManager.getStation(0); DataStation dataStation2 = new TestStation(float.Parse(elements[2]), float.Parse(elements[1]), elements[0]); Assert.AreEqual(dataStation1.TargetTemp - 1, dataStation2.TargetTemp); }