Ejemplo n.º 1
0
        public string FahrenheitToKelvin(decimal number)
        {
            TemperatureConvert convert = new TemperatureConvert();
            decimal            result  = convert.FahrenheitToKelvin(number);

            return($"The temperature is: {result}");
        }
Ejemplo n.º 2
0
            public void WhenFahrenheitSupplied_ThenReturnKelvin(double fahrenheit, double expected)
            {
                var result = TemperatureConvert.FahrenheitToKelvin(fahrenheit);

                Assert.That(result, Is.EqualTo(expected));
            }