public void FormatMissingRegionWithSuccess(string region, string formattedRegion, Exception e)
        {
            "Given a region"
            .x(() => region = "Non-Existent Region");

            "When formatting the region"
            .x(() => e = Record.Exception(() => formattedRegion = CustomLiquidFunctions.FormatRegion(region)));

            "Then the format should succeed"
            .x(() => e.Should().BeNull());

            "And the formatted region should be null"
            .x(() => formattedRegion.Should().BeNull());
        }
        public void FormatRegionWithRegionNullError(string region, string formattedRegion, Exception e)
        {
            "Given a null region"
            .x(() => region.Should().BeNull());

            "When formatting the region"
            .x(() => e = Record.Exception(() => formattedRegion = CustomLiquidFunctions.FormatRegion(region)));

            "Then the format should succeed"
            .x(() => e.Should().BeNull());

            "And the formatted region should be null"
            .x(() => formattedRegion.Should().BeNull());
        }
        public void FormatRegionWithSuccess(string region, string formattedRegion, Exception e)
        {
            "Given a region"
            .x(() => region = "UK South");

            "When formatting the region"
            .x(() => e = Record.Exception(() => formattedRegion = CustomLiquidFunctions.FormatRegion(region)));

            "Then the format should succeed"
            .x(() => e.Should().BeNull());

            "And the formatted region should have the expected value"
            .x(() => formattedRegion.Should().Be("uksouth"));
        }