Beispiel #1
0
        public void Should_write_extra_line_after_object()
        {
            var prettySut = new JsonLogWriterFactory(false, true).Create();

            prettySut.Start();
            prettySut.WriteProperty("property", 1.5);

            Assert.Equal(@"{""property"":1.5}NL".Replace("NL", Environment.NewLine), prettySut.End());
        }
Beispiel #2
0
        public void Should_write_pretty_json()
        {
            var prettySut = new JsonLogWriterFactory(true).Create();

            prettySut.Start();
            prettySut.WriteProperty("property", 1.5);

            Assert.Equal(@"{NL  ""property"": 1.5NL}".Replace("NL", Environment.NewLine), prettySut.End());
        }