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

            var result = prettySut.WriteProperty("property", 1.5).ToString();

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

            var result = prettySut.WriteProperty("property", 1.5).ToString();

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