public void Test_to_celsius_generic_from_gas_returns_correct_value(int input, int expected) { // Arrange. var inputGas = new GasInt(input); // Act. var result = inputGas.To <Celsius>(); // Assert. result.Should().Be(expected); }
public void Test_to_gas_generic_from_gas_returns_same_value() { // Arrange. var input = new GasInt(7); // Act. var result = input.To <Gas>(); // Assert. result.Should().Be(input.Temperature); }
public void Test_to_rankine_generic_from_gas_returns_correct_value() { // Arrange. const int expected = 852; var input = new GasInt(6); // Act. var result = input.To <Rankine>(); // Assert. result.Should().Be(expected); }
public void Test_to_fahrenheit_generic_from_gas_returns_correct_value() { // Arrange. const int expected = 428; var input = new GasInt(7); // Act. var result = input.To <Fahrenheit>(); // Assert. result.Should().Be(expected); }