public void ConvertCelsiusToFahrenheitTest() { double celsiusTemperature = 100; double expected = 212; double actual = TemperatureConverter.ConvertCelsiusToFahrenheit(celsiusTemperature); Assert.Equal(expected, actual); }
public void ConvertCelsiusToFahrenheit_WhenCalled_ReturnsTemperatureInFahrenheit(double celsius, double expectedResult) { Assert.AreEqual(expectedResult, TemperatureConverter.ConvertCelsiusToFahrenheit(celsius), 0.0000000001); }