public void ParseCelsiusToFahrenheit_WhenCalled_ReturnsTemperatureInFahrenheit(string celsius, string expectedResult, int decimalPlaces) { Assert.AreEqual(expectedResult, TemperatureConverter.ParseCelsiusToFahrenheit(celsius, decimalPlaces)); }
public void ParseCelsiusToFahrenheit_WhenCalledWithNotParseableArgument_ThrowsFormatException(string temperatureInCelsius) { Assert.Throws <FormatException>(() => TemperatureConverter.ParseCelsiusToFahrenheit(temperatureInCelsius)); }