public void Should_write_extra_line_after_object() { IObjectWriter prettySut = new JsonLogWriter(Formatting.None, true); var result = prettySut.WriteProperty("property", 1.5).ToString(); Assert.Equal(@"{""property"":1.5}NL".Replace("NL", Environment.NewLine), result); }
public void Should_write_pretty_json() { IObjectWriter prettySut = new JsonLogWriter(Formatting.Indented); var result = prettySut.WriteProperty("property", 1.5).ToString(); Assert.Equal(@"{NL ""property"": 1.5NL}".Replace("NL", Environment.NewLine), result); }