public void ToNullJsonStringWithSuccess(string value, string jsonString, Exception e)
        {
            "Given a null string"
            .x(() => value = null);

            "When converting the string"
            .x(() => e = Record.Exception(() => jsonString = CustomLiquidFunctions.ToJsonString(value)));

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

            "And the JSON string should be null"
            .x(() => jsonString.Should().BeNull());
        }
        public void ToEscapedJsonStringWithSuccess(string value, string jsonString, Exception e)
        {
            "Given a string"
            .x(() => value = "\"Quoted String with Backslash \\ Character\"");

            "When converting the string"
            .x(() => e = Record.Exception(() => jsonString = CustomLiquidFunctions.ToJsonString(value)));

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

            "And the JSON string should have the expected value"
            .x(() => jsonString.Should().Be("\\\"Quoted String with Backslash \\\\ Character\\\""));
        }