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

            temperatureConverter.SetTemperature(41.0);
            Assert.AreEqual(278.15, temperatureConverter.FahrenheitToKelvin());
        }
Ejemplo n.º 2
0
        public void FahrenheitToKelvin(decimal temperature, decimal expected)
        {
            // Arrange
            var temperatureConverter = new TemperatureConverter();

            // Act
            var result = temperatureConverter.FahrenheitToKelvin(temperature);

            // Assert
            result.Should().Be(expected);
        }