public void GetLogger_SendInAnyName_ReturnsLogAdapterWithCorrectName() { var adapter = new LogManagerAdapter(); var result = (LogAdapter)adapter.GetLogger("Any name"); Assert.AreEqual("Any name", result.LoggerName); }
public void GetLogger_SendInAnyType_ReturnsLogAdapterWithCorrectName() { var adapter = new LogManagerAdapter(); var result = (LogAdapter)adapter.GetLogger(GetType()); Assert.AreEqual(GetType().FullName, result.LoggerName); }
public void GetLogger_SendInAnyType_ReturnsLogAdapter() { var adapter = new LogManagerAdapter(); var result = adapter.GetLogger(GetType()); Assert.IsInstanceOf <LogAdapter>(result); }