public void Add_Logger_provider_into_a_new_configuration_manager() { ILoggerConfigManager configmanager = GetaTestFileConfigManager(_configPath); configmanager.GetSettings().addProvider(GetaTestProvider(_testprovidername)); Assert.That(configmanager.GetSettings().getProvider(_testprovidername), !Is.Null); }
public void Create_logger_configuration_from_string() { ILoggerConfigManager configmanager = GetTestStringConfigManager(); 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 = 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); }