public void Test_to_kelvin_generic_from_kelvin_returns_same_value() { // Arrange. var input = new KelvinDouble(473.15); // Act. var result = input.To <Kelvin>(); // Assert. result.Should().Be(input.Temperature); }
public void Test_to_rankine_generic_from_kelvin_returns_same_value() { // Arrange. const double expected = 851.6699999999998d; var input = new KelvinDouble(473.15); // Act. var result = input.To <Rankine>(); // Assert. result.Should().Be(expected); }
public void Test_to_gas_generic_from_kelvin_returns_correct_value() { // Arrange. const double expected = 6d; var input = new KelvinDouble(473.15); // Act. var result = input.To <Gas>(); // Assert. result.Should().Be(expected); }
public void Test_to_fahrenheit_generic_from_kelvin_returns_correct_value() { // Arrange. const double expected = 33.8d; var input = new KelvinDouble(274.15); // Act. var result = input.To <Fahrenheit>(); // Assert. result.Should().Be(expected); }