예제 #1
0
        public void PropertiesCanBeBound()
        {
            var log = new LoggerConfiguration()
                      .CreateLogger();

            Assert.True(log.BindProperty("Name", "World", false, out var property));

            Assert.Equal("Name", property.Name);
            Assert.Equal("World", property.Value.LiteralValue());
        }
예제 #2
0
        public void PropertiesCanBeBound()
        {
            var log = new LoggerConfiguration()
                .CreateLogger();

            LogEventProperty property;
            Assert.True(log.BindProperty("Name", "World", false, out property));

            Assert.Equal("Name", property.Name);
            Assert.Equal("World", property.Value.LiteralValue());
        }