示例#1
0
        public void ReadWhenMappingToTypeExistsPropertyGetSetToThatType()
        {
            // Arrange
            var config = TomlSettings.Create(cfg => cfg
                                             .MapTableKey(ObjRootConfig.PluginConfigKey).To <SimplePluginConfig>());

            // Act
            var c = Toml.ReadString <ObjRootConfig>(ObjRootConfig.DefaultSimpleToml, config);

            // Assert
            c.PluginConfig.Should().Be(SimplePluginConfig.CreateDefault());
        }
示例#2
0
 public DictRootConfigTests()
 {
     simplePluginConfig = new SimplePluginConfig();
 }