public void Test_to_gas_from_celsius_throws_out_of_range_exception_too_high() { // Arrange. var input = new CelsiusString("271"); // 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_celsius_returns_correct_value() { // Arrange. const string expected = "6"; var input = new CelsiusString("200"); // Act. var result = input.ToGas(); // Assert. result.Should().Be(expected); }