public void Test_to_gas_generic_from_gas_with_invalid_parameters_throws_argument_out_of_range_exception(double input)
        {
            // Arrange.
            var inputGas = new GasDouble(input);

            // Act.
            var result = Assert.Throws <ArgumentOutOfRangeException>(() => inputGas.To <Gas>());

            // Assert.
            result.Message.Should().Contain("Temp too low or too high for gas mark!");
        }
        public void Test_to_gas_generic_from_gas_returns_same_value()
        {
            // Arrange.
            var input = new GasDouble(7);

            // Act.
            var result = input.To <Gas>();

            // Assert.
            result.Should().Be(input.Temperature);
        }
        public void Test_to_celsius_generic_from_gas_returns_correct_value(double input, double expected)
        {
            // Arrange.
            var inputGas = new GasDouble(input);

            // Act.
            var result = inputGas.To <Celsius>();

            // Assert.
            result.Should().Be(expected);
        }
        public void Test_to_rankine_generic_from_gas_returns_correct_value()
        {
            // Arrange.
            const double expected = 851.6699999999998d;
            var          input    = new GasDouble(6);

            // Act.
            var result = input.To <Rankine>();

            // Assert.
            result.Should().Be(expected);
        }
        public void Test_to_kelvin_generic_from_gas_returns_correct_value()
        {
            // Arrange.
            const double expected = 473.15d;
            var          input    = new GasDouble(6);

            // Act.
            var result = input.To <Kelvin>();

            // Assert.
            result.Should().Be(expected);
        }
        public void Test_to_fahrenheit_generic_from_gas_returns_correct_value()
        {
            // Arrange.
            const double expected = 428d;
            var          input    = new GasDouble(7);

            // Act.
            var result = input.To <Fahrenheit>();

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