public void TestFahrenheitToKelvin() { var temperatureConverter = new TemperatureConverter(); temperatureConverter.SetTemperature(41.0); Assert.AreEqual(278.15, temperatureConverter.FahrenheitToKelvin()); }
public void FahrenheitToKelvin(decimal temperature, decimal expected) { // Arrange var temperatureConverter = new TemperatureConverter(); // Act var result = temperatureConverter.FahrenheitToKelvin(temperature); // Assert result.Should().Be(expected); }