public void TestCreateLoggerZeroConfigurationError() { // load the config IConfiguration config = new ConfigurationManager().GetConfiguration("TopCoder.LoggingWrapper.LogManager"); config.SetSimpleAttribute("logger_class", "TopCoder.LoggingWrapper.AnotherSimpleLogger"); LogManager.CreateLogger(config); }
public void TestCreateLoggerInvalidZeroConfigurationOption() { // load the config IConfiguration config = new ConfigurationManager().GetConfiguration("TopCoder.LoggingWrapper.LogManager"); config.SetSimpleAttribute("default_config", "unknown"); LogManager.CreateLogger(config); }