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)); }
private static void DecreasePrecip(WeatherCell cell, int change) { cell.ChangePrecip(-1 * change); }