Ejemplo n.º 1
0
        public void TestCelciusToKelvin()
        {
            var temperatureConverter = new TemperatureConverter();

            temperatureConverter.SetTemperature(10.0);
            Assert.AreEqual(283.15, temperatureConverter.CelciusToKelvin());
        }
Ejemplo n.º 2
0
        public void TempConv_Test()
        {
            //TRUE
            Assert.Equal(32, TemperatureConverter.CelciusToFahrenheit(0));
            Assert.Equal(10, TemperatureConverter.FahrenheitToCelcius(50));
            Assert.Equal(373.15, TemperatureConverter.CelciusToKelvin(100));

            // //FALSE
            // Assert.Equal(101.85,TemperatureConverter.KelvinToCelcius(375));
            // Assert.Equal(215.33,TemperatureConverter.KelvinToFahrenheit(375));
            // Assert.Equal(262.039,TemperatureConverter.FahrenheitToKelvin(12));
        }