public void Init_CreateInstance_CheckForNull() { var logManager = new NLogManagerAdapter(); Assert.IsNotNull(logManager); logManager.ShutDown(); }
public void GlobalThreshold_SetGlobalThreshold_ValueEqualsExpected(LogLevel loglevel) { var input = loglevel; var logManager = new NLogManagerAdapter(); logManager.GlobalThreshold = input; var result = logManager.GlobalThreshold; var expected = loglevel; Assert.AreEqual(expected, result); logManager.ShutDown(); }
public void GetLogger_CreateInstance_GetLogger_CheckResultForNull() { var logManager = new NLogManagerAdapter(); var result = logManager.GetLogger("Test"); Assert.IsNotNull(result); const String ExpectedName = "Test"; Assert.AreEqual(ExpectedName, result.Name); logManager.ShutDown(); }