Пример #1
0
        public static void ConfigureByBuildConfiguration()
        {
            var config = Configuration.Build(builder => {
                builder.WithSetting("a", 43.01f)
                .WithSetting("b", "test");
            });

            Assert.NotEmpty(config);
            Assert.NotEmpty(config);

            var value = config.GetSingle("a");

            Assert.Equal(43.01f, value);

            var s = config.GetString("b");

            Assert.Equal("test", s);
        }