Пример #1
0
        public string CelsiusToKelvin(decimal number)
        {
            TemperatureConvert convert = new TemperatureConvert();
            decimal            result  = convert.CelsiusToKelvin(number);

            return($"The temperature is: {result}");
        }
Пример #2
0
            public void WhenCelsiusSupplied_ThenReturnKelvin(double celsius, double expected)
            {
                var result = TemperatureConvert.CelsiusToKelvin(celsius);

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