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