public void TemperatueChangeTest(int startValue, int changeValue, int expectedValue) { var cell = new WeatherCell(1) { Temperature = startValue }; cell.ChangeTemperature(changeValue); Assert.That(cell.Temperature, Is.EqualTo(expectedValue)); }
private static void DecreaseTemp(WeatherCell cell, int change) { cell.ChangeTemperature(-1 * change); }