public void Test_to_fahrenheit_generic_from_fahrenheit_returns_correct_value() { // Arrange. var input = new FahrenheitFloat(50.456f); // Act. var result = input.To <Fahrenheit>(); // Assert. result.Should().Be(input.Temperature); }
public void Test_to_rankine_generic_from_fahrenheit_returns_correct_value() { // Arrange. const float expected = 851.6700000000001f; var input = new FahrenheitFloat(392); // Act. var result = input.To <Rankine>(); // Assert. result.Should().Be(expected); }
public void Test_to_kelvin_generic_from_fahrenheit_returns_correct_value() { // Arrange. const float expected = 473.15f; var input = new FahrenheitFloat(392); // Act. var result = input.To <Kelvin>(); // Assert. result.Should().Be(expected); }
public void Test_to_celsius_generic_from_fahrenheit_returns_correct_value() { // Arrange. const float expected = 10f; var input = new FahrenheitFloat(50.0f); // Act. var result = input.To <Celsius>(); // Assert. result.Should().Be(expected); }