public void Test_to_gas_from_kelvin_throws_out_of_range_exception_too_high() { // Arrange. var input = new KelvinString("544.15"); // Act. var result = Assert.Throws <ArgumentOutOfRangeException>(() => input.ToGas()); // Assert. result.Message.Should().Contain("Temp too high for gas mark!"); }
public void Test_to_gas_from_kelvin_returns_correct_value() { // Arrange. const string expected = "6"; var input = new KelvinString("478.15"); // Act. var result = input.ToGas(); // Assert. result.Should().Be(expected); }