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));
        }
示例#2
0
 private static void DecreaseTemp(WeatherCell cell, int change)
 {
     cell.ChangeTemperature(-1 * change);
 }