Exemplo n.º 1
0
        public void GetLogger_SendInAnyName_ReturnsLogAdapterWithCorrectName()
        {
            var adapter = new LogManagerAdapter();

            var result = (LogAdapter)adapter.GetLogger("Any name");

            Assert.AreEqual("Any name", result.LoggerName);
        }
Exemplo n.º 2
0
        public void GetLogger_SendInAnyType_ReturnsLogAdapterWithCorrectName()
        {
            var adapter = new LogManagerAdapter();

            var result = (LogAdapter)adapter.GetLogger(GetType());

            Assert.AreEqual(GetType().FullName, result.LoggerName);
        }
Exemplo n.º 3
0
        public void GetLogger_SendInAnyType_ReturnsLogAdapter()
        {
            var adapter = new LogManagerAdapter();

            var result = adapter.GetLogger(GetType());

            Assert.IsInstanceOf <LogAdapter>(result);
        }