Пример #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));
 }