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()); }
public DictRootConfigTests() { simplePluginConfig = new SimplePluginConfig(); }