public void SetHumidity_ProperlySetsValue() { var builder = new WeatherDataBuilder(); var humidity = 56; builder.SetHumidity(humidity); var data = builder.Build(); Assert.Equal(humidity, data.Humidity); }
public void SetHumidity_InvalidValue_ThrowsException(int value) { var builder = new WeatherDataBuilder(); Assert.ThrowsAny <InvalidOperationException>(() => builder.SetHumidity(value)); }