public void PrecipChangeTest(int startValue, int changeValue, int expectedValue)
        {
            var cell = new WeatherCell(1)
            {
                Precipitation = startValue
            };

            cell.ChangePrecip(changeValue);

            Assert.That(cell.Precipitation, Is.EqualTo(expectedValue));
        }
Exemple #2
0
 private static void DecreasePrecip(WeatherCell cell, int change)
 {
     cell.ChangePrecip(-1 * change);
 }