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