public string CelsiusToKelvin(decimal number) { TemperatureConvert convert = new TemperatureConvert(); decimal result = convert.CelsiusToKelvin(number); return($"The temperature is: {result}"); }
public void WhenCelsiusSupplied_ThenReturnKelvin(double celsius, double expected) { var result = TemperatureConvert.CelsiusToKelvin(celsius); Assert.That(result, Is.EqualTo(expected)); }