public void Make_default_settings_and_save_to_disk() { ILoggerConfigManager configmanager = GetaTestFileConfigManager(_configPath); configmanager.Write(); Assert.That(File.Exists(_configPath), Is.True); }
public void Make_default_settings_and_save_to_disk() { ILoggerConfigManager configmanager = GetaTestConfigManager(_configPath); ILoggerSettings settings = configmanager.Load(); settings.setEnvironment(_environmentName); settings.addProvider(GetaTestProvider(_testprovidername)); configmanager.Write(); Assert.That(File.Exists(_configPath), Is.True); }
public void Create_Save_And_Load_logger_configuration_from_disk() { ILoggerConfigManager configmanager = GetaTestFileConfigManager(_configPath); configmanager.GetSettings().addProvider(GetaTestProvider(_testprovidername)); configmanager.Write(); Assert.That(File.Exists(_configPath), Is.True); configmanager.Load(); Assert.That(configmanager.GetSettings(), !Is.Null); Assert.That(configmanager.GetSettings().getProvider(_testprovidername), !Is.Null); }
public void Create_Save_And_Load_logger_configuration_from_disk() { ILoggerConfigManager configmanager = GetaTestConfigManager(_configPath); ILoggerSettings settings = configmanager.Load(); settings.setEnvironment(_environmentName); settings.addProvider(GetaTestProvider(_testprovidername)); configmanager.Write(); Assert.That(File.Exists(_configPath), Is.True); Assert.That(configmanager.Reset(), Is.Null); settings = configmanager.Load(); Assert.That(settings, !Is.Null); Assert.That(settings.getProvider(_testprovidername), !Is.Null); }