static string Format(LogEventPropertyValue value) { var formatter = new TestThemedJsonValueFormatter(); var output = new StringWriter(); formatter.Format(value, output, null); return(output.ToString()); }
public void JsonLiteralTypesAreFormatted(object value, string expectedJson) { var formatter = new TestThemedJsonValueFormatter(); Assert.Equal(expectedJson, formatter.Format(value)); }