Create() public méthode

public Create ( String name ) : ILogger
name String
Résultat ILogger
		public void CanCreateLog4NetConfigUsingStream()
		{
			Log4netFactory factory;
			using (var stream = StringToStream(log4netConfig.Config))
			{
				factory = new Log4netFactory(stream);
			}

			var logger = factory.Create(loggerName);
			logger.Debug(logMessage);

			var logContent = GetLogContent();

			Assert.AreEqual(logMessage, logContent);
		}
		public void CanCreateLog4NetConfigUsingStream()
		{
			// Test with writing to a file
			// Just using console output doesn't work as the test runner writes to the console too

			Log4netFactory factory;
			using (var stream = StringToStream(log4netConfig.Config))
			{
				factory = new Log4netFactory(stream);
			}

			var logger = factory.Create(loggerName);
			logger.Debug(logMessage);

			var logContent = File.ReadAllText(logFileName);

			Assert.AreEqual(logMessage, logContent);
		}